Bug 248790 - [content-visibility] it should trigger a layout if the value of content-visibility is changed from hidden to others
Summary: [content-visibility] it should trigger a layout if the value of content-visib...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: cathiechen
URL:
Keywords:
Depends on:
Blocks: 236238
  Show dependency treegraph
 
Reported: 2022-12-05 14:31 PST by cathiechen
Modified: 2022-12-07 09:15 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description cathiechen 2022-12-05 14:31:55 PST
Per[1], content-visibility: hidden turns on contain:size.
Contain:size would change the layout size of an element.
So when an element's content-visibility value changes from hidden to other, it should trigger a layout, vice versa. 

[1] https://w3c.github.io/csswg-drafts/css-contain-2/#skips-its-contents
Comment 1 cathiechen 2022-12-05 16:54:38 PST
Pull request: https://github.com/WebKit/WebKit/pull/7181
Comment 2 EWS 2022-12-07 09:14:11 PST
Committed 257484@main (2e92a10ead3d): <https://commits.webkit.org/257484@main>

Reviewed commits have been landed. Closing PR #7181 and removing active labels.