WICG / layout-instability

A proposal for a Layout Instability specification
https://wicg.github.io/layout-instability/
Other
159 stars 27 forks source link

`content-visibility: auto;` makes CLS go bananas #89

Closed zeemawn closed 3 years ago

zeemawn commented 3 years ago

Hi, I've already posted this as an issue in the web-vitals repo but got referred here 🙂

https://github.com/GoogleChrome/web-vitals/issues/108

It seems like by using the new content-visibility: auto; the measured layout-shifts keep increasing while the user scrolls the page, even though the shifts are happening outside the visible viewport - is this a desired behavior?

The reported CLS-values can easily get to 1 and above just by scrolling down the page (even though for the user everything looks fine and non-jumpy).

yoavweiss commented 3 years ago

There was a Chromium implementation bug that was fixed. Do you still see an issue in e.g. Chrome Canary?

skobes-chromium commented 3 years ago

Let's use crbug.com/1164942 to track this issue.