[webkit-changes] [WebKit/WebKit] eea0af: [content-visibility] Property should not apply to ...
Rob Buis
noreply at github.com
Fri Nov 17 06:37:53 PST 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: eea0af365e1cca71d12a328eee4398d5f2db9745
https://github.com/WebKit/WebKit/commit/eea0af365e1cca71d12a328eee4398d5f2db9745
Author: Rob Buis <rbuis at igalia.com>
Date: 2023-11-17 (Fri, 17 Nov 2023)
Changed paths:
A LayoutTests/imported/w3c/web-platform-tests/css/css-contain/content-visibility/content-visibility-094-expected.html
A LayoutTests/imported/w3c/web-platform-tests/css/css-contain/content-visibility/content-visibility-094.html
A LayoutTests/imported/w3c/web-platform-tests/css/css-contain/content-visibility/content-visibility-095-expected.html
A LayoutTests/imported/w3c/web-platform-tests/css/css-contain/content-visibility/content-visibility-095.html
M Source/WebCore/rendering/RenderElementInlines.h
M Source/WebCore/rendering/style/RenderStyleInlines.h
Log Message:
-----------
[content-visibility] Property should not apply to tables
https://bugs.webkit.org/show_bug.cgi?id=264163
Reviewed by Tim Nguyen.
The content-visibility property applied to elements for which size containment can apply [1].
However, size containment does not apply to tables [2], so change the code to make content-visibility
not have a direct effect on tables.
[1] https://drafts.csswg.org/css-contain/#content-visibility
[2] https://drafts.csswg.org/css-contain/#containment-size
* LayoutTests/imported/w3c/web-platform-tests/css/css-contain/content-visibility/content-visibility-094-expected.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/css/css-contain/content-visibility/content-visibility-094.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/css/css-contain/content-visibility/content-visibility-095-expected.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/css/css-contain/content-visibility/content-visibility-095.html: Added.
* Source/WebCore/rendering/RenderElementInlines.h:
(WebCore::RenderElement::shouldApplyLayoutOrPaintContainment const):
(WebCore::RenderElement::shouldApplyPaintContainment const):
* Source/WebCore/rendering/style/RenderStyleInlines.h:
(WebCore::isSkippedContentRoot):
Canonical link: https://commits.webkit.org/270888@main
More information about the webkit-changes
mailing list