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.