Skip to content
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

[content-visibility] Support content-visibility for resize/intersection observer #6973

Commits on Dec 1, 2022

  1. [content-visibility] Support content-visibility for resize/intersecti…

    …on observer
    
    https://bugs.webkit.org/show_bug.cgi?id=245776
    
    Reviewed by Darin Adler.
    
    Implement restrictions to resize and intersection observers as specified in the specification:
    https://w3c.github.io/csswg-drafts/css-contain/#cv-notes (Items 1 and 2)
    
    * LayoutTests/imported/w3c/web-platform-tests/css/css-contain/content-visibility/content-visibility-030-expected.txt:
    * LayoutTests/imported/w3c/web-platform-tests/css/css-contain/content-visibility/content-visibility-031-expected.txt:
    * Source/WebCore/dom/Document.cpp:
    (WebCore::computeIntersectionState):
    * Source/WebCore/page/ResizeObservation.cpp:
    (WebCore::ResizeObservation::computeObservedSizes const):
    (WebCore::ResizeObservation::elementSizeChanged const):
    * Source/WebCore/page/ResizeObservation.h:
    
    Canonical link: https://commits.webkit.org/257256@main
    rwlbuis committed Dec 1, 2022
    Configuration menu
    Copy the full SHA
    56fda58 View commit details
    Browse the repository at this point in the history