-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The .sr-only
utility class causes browser repaints in overflowing divs
#24906
Comments
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. |
@mdo: thoughts how to proceed? Also, has anyone filed a bug report in Chromium? |
@XhmikosR Updating the class to remove the |
@mdo: do you think you could have this sorted for the stable? I'm not familiar with the current |
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.Browser: Chrome
Operating System: Mac OSX Sierra
Please see the reduced test case here:
https://codepen.io/bbthorntz/pen/pdxLzd
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.
The text was updated successfully, but these errors were encountered: