You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The .sr-only utility class causes browser repaints in overflowing divs #24906
After much research to removing scroll lag from our app, I discovered that elements with the .sr-only class cause repaints when scrolling in overflowing divs.
In Chrome, with 'Inspector -> Rendering -> Paint Flashing' enabled, you can see that the presence of the element with the .sr-only class causes paint flashing. If you remove this element, the paint flashing stops.
Removing the clip-path property from the class appears to fix the issue.
I have yet to test whether this affects other browsers/operating systems.
I can confirm that this causes the same issue on Windows & Android Chrome. Android has probably the biggest impact as it makes scrolling almost unusable.
Activity
gstreetmedia commentedon Dec 2, 2017
I can confirm that this causes the same issue on Windows & Android Chrome. Android has probably the biggest impact as it makes scrolling almost unusable.
XhmikosR commentedon Dec 30, 2017
@mdo: thoughts how to proceed?
Also, has anyone filed a bug report in Chromium?
mdo commentedon Dec 31, 2017
@XhmikosR Updating the class to remove the
clip-pathis probably best way forward. Chrome bug would be great, too.XhmikosR commentedon Jan 3, 2018
@mdo: do you think you could have this sorted for the stable?
I'm not familiar with the current
clip-pathapproach, so I don't know if just removing it is good.