bringing back the triangle (partly) to fix 9067

Fix #9067 
Fix #9035 
**CC:**@RaymondLim 

The logic to sync the selection marker has been reintroduced and the CSS to draw the triangle was removed.

I wonder whether you can change the two z-indexes here to have the scrollbar drawn in front.