• Chris Harrelson's avatar
    [CLS] Don't let content-visibility:auto affect CLS · c5191c8b
    Chris Harrelson authored
    A previous CL (*) already did this up to the first observation.
    Now we enforce it for all times content skips and unskips.
    
    The rationale for this change is that content-visibility is a
    UA-controlled best practice, and it is mostly up to the UA to avoid
    layout shifts when using this feature.
    
    Note that there will still be layout shifts reported for elements
    adjacent to (but not descendants of) content-visibility:auto elements
    if the content-visibility:auto element resizes and causes a shift.
    The change in this CL applies only to the content-visibility:auto
    element itself.
    
    Bug: 1151526
    
    Change-Id: Ie3aed71b2f2500ea799c7bf77dbdd28e60a9175a
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2566270Reviewed-by: default avatarvmpstr <vmpstr@chromium.org>
    Commit-Queue: Chris Harrelson <chrishtr@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#832142}
    c5191c8b
2020_11_cls.md 2.03 KB