Title: [292127] trunk
- Revision
- 292127
- Author
- [email protected]
- Date
- 2022-03-30 16:23:34 -0700 (Wed, 30 Mar 2022)
Log Message
[CSS contain] Containment disables the special handling of the HTML body element for overflow viewport propagation.
https://bugs.webkit.org/show_bug.cgi?id=238526
Reviewed by Simon Fraser.
Source/WebCore:
https://www.w3.org/TR/css-overflow-3/#overflow-propagation
"...UAs must apply the overflow-* values set on the root element to the viewport when the root element’s display value is not none.
However, when the root element is an html element whose overflow value is visible, and that element has as a
child a body element whose display value is also not none, user agents must instead apply the
overflow-* values of the first such child element to the viewport.
The element from which the value is propagated must then have a used overflow value of visible.
Note: Using containment disables this special handling of the HTML body element..."
* rendering/RenderBox.cpp:
(WebCore::RenderBox::updateFromStyle):
LayoutTests:
* TestExpectations:
* fast/layers/parent-clipping-overflow-is-overwritten-by-child-clipping-expected.html:
* fast/layers/parent-clipping-overflow-is-overwritten-by-child-clipping.html:
Modified Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (292126 => 292127)
--- trunk/LayoutTests/ChangeLog 2022-03-30 23:19:22 UTC (rev 292126)
+++ trunk/LayoutTests/ChangeLog 2022-03-30 23:23:34 UTC (rev 292127)
@@ -1,3 +1,14 @@
+2022-03-30 Alan Bujtas <[email protected]>
+
+ [CSS contain] Containment disables the special handling of the HTML body element for overflow viewport propagation.
+ https://bugs.webkit.org/show_bug.cgi?id=238526
+
+ Reviewed by Simon Fraser.
+
+ * TestExpectations:
+ * fast/layers/parent-clipping-overflow-is-overwritten-by-child-clipping-expected.html:
+ * fast/layers/parent-clipping-overflow-is-overwritten-by-child-clipping.html:
+
2022-03-30 Youenn Fablet <[email protected]>
Implement persistent notification handling
Modified: trunk/LayoutTests/TestExpectations (292126 => 292127)
--- trunk/LayoutTests/TestExpectations 2022-03-30 23:19:22 UTC (rev 292126)
+++ trunk/LayoutTests/TestExpectations 2022-03-30 23:23:34 UTC (rev 292127)
@@ -4696,13 +4696,11 @@
imported/w3c/web-platform-tests/css/css-contain/quote-scoping-002.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-contain/quote-scoping-003.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-contain/quote-scoping-004.html [ ImageOnlyFailure ]
-imported/w3c/web-platform-tests/css/css-contain/contain-body-overflow-001.html [ ImageOnlyFailure ]
-imported/w3c/web-platform-tests/css/css-contain/contain-body-overflow-002.html [ ImageOnlyFailure ]
-imported/w3c/web-platform-tests/css/css-contain/contain-body-overflow-003.html [ ImageOnlyFailure ]
-imported/w3c/web-platform-tests/css/css-contain/contain-body-overflow-004.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-contain/contain-html-overflow-001.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-contain/contain-html-overflow-003.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-contain/contain-html-overflow-004.html [ ImageOnlyFailure ]
+# innerText bug
+webkit.org/b/238555 imported/w3c/web-platform-tests/css/css-contain/contain-flexbox-outline.html [ Failure ]
# Container queries
webkit.org/b/229659 imported/w3c/web-platform-tests/css/css-contain/container-queries/custom-layout-container-001.https.html [ ImageOnlyFailure ]
Modified: trunk/LayoutTests/fast/css/counters/findPlaceForCounter-parent-renderer-crash-expected.txt (292126 => 292127)
--- trunk/LayoutTests/fast/css/counters/findPlaceForCounter-parent-renderer-crash-expected.txt 2022-03-30 23:19:22 UTC (rev 292126)
+++ trunk/LayoutTests/fast/css/counters/findPlaceForCounter-parent-renderer-crash-expected.txt 2022-03-30 23:23:34 UTC (rev 292127)
@@ -1 +1 @@
-PASS if this doesn't crash
+
Modified: trunk/Source/WebCore/ChangeLog (292126 => 292127)
--- trunk/Source/WebCore/ChangeLog 2022-03-30 23:19:22 UTC (rev 292126)
+++ trunk/Source/WebCore/ChangeLog 2022-03-30 23:23:34 UTC (rev 292127)
@@ -1,3 +1,23 @@
+2022-03-30 Alan Bujtas <[email protected]>
+
+ [CSS contain] Containment disables the special handling of the HTML body element for overflow viewport propagation.
+ https://bugs.webkit.org/show_bug.cgi?id=238526
+
+ Reviewed by Simon Fraser.
+
+ https://www.w3.org/TR/css-overflow-3/#overflow-propagation
+
+ "...UAs must apply the overflow-* values set on the root element to the viewport when the root element’s display value is not none.
+ However, when the root element is an html element whose overflow value is visible, and that element has as a
+ child a body element whose display value is also not none, user agents must instead apply the
+ overflow-* values of the first such child element to the viewport.
+ The element from which the value is propagated must then have a used overflow value of visible.
+
+ Note: Using containment disables this special handling of the HTML body element..."
+
+ * rendering/RenderBox.cpp:
+ (WebCore::RenderBox::updateFromStyle):
+
2022-03-30 Devin Rousso <[email protected]>
Web Inspector: Sources: the mapped file URL of a Response Local Override should be clickable
Modified: trunk/Source/WebCore/rendering/RenderBox.cpp (292126 => 292127)
--- trunk/Source/WebCore/rendering/RenderBox.cpp 2022-03-30 23:19:22 UTC (rev 292126)
+++ trunk/Source/WebCore/rendering/RenderBox.cpp 2022-03-30 23:23:34 UTC (rev 292127)
@@ -513,7 +513,8 @@
// (3) The root element has visible overflow.
if (is<HTMLHtmlElement>(*document().documentElement())
&& document().body() == element()
- && document().documentElement()->renderer()->effectiveOverflowX() == Overflow::Visible) {
+ && document().documentElement()->renderer()->effectiveOverflowX() == Overflow::Visible
+ && !styleToUse.effectiveContainment()) {
boxHasNonVisibleOverflow = false;
}
}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes