-
Notifications
You must be signed in to change notification settings - Fork 27
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
exclude elements that transition from hidden to visible #86
Comments
How about defining visual representation as: visible ink overflow [1]?
but will record a layout shift for
Note that Chrome is already using ink overflow for visual representation. |
I think it is better that we don't report a layout shift for outline and shadow changes. We used to do this, but it often fired on pages with hover effects, which wasn't really intended. |
No, I'm not suggesting reporting layout shift for outline and shadow changes, but suggesting considering ink overflow when the object shifts. Please see the examples: example 1 shows what we don't want to report, while example 2 shows what Chrome is reporting and what I suggest to modify the spec. Specifically, for example 2, Chrome is reporting a shift of 201x201 by 200 (which reflects user experience), instead of 1x1 by 200 (which will be ignored). In other words,
|
Ah I see, thanks for clarifying. This proposal sounds good to me. |
The spec currently excludes
visibility:hidden
elements from the unstable node set, but it doesn't exclude elements that are now visibile but were hidden in the previous frame.We should exclude such elements for the same reason that we exclude
visibility:hidden
generally. A visible shift requires visibility in both the previous and current states. Transitioning from hidden to visible is more like inserting new content, which CLS intends to allow.crbug.com/1152869
The text was updated successfully, but these errors were encountered: