Diff
Modified: trunk/LayoutTests/ChangeLog (288785 => 288786)
--- trunk/LayoutTests/ChangeLog 2022-01-29 05:33:17 UTC (rev 288785)
+++ trunk/LayoutTests/ChangeLog 2022-01-29 07:24:13 UTC (rev 288786)
@@ -1,3 +1,12 @@
+2022-01-28 Antti Koivisto <[email protected]>
+
+ [CSS container Queries] Include container queries in RuleSets
+ https://bugs.webkit.org/show_bug.cgi?id=235763
+
+ Reviewed by Simon Fraser.
+
+ * TestExpectations:
+
2022-01-28 Myles C. Maxfield <[email protected]>
REGRESSION(r281687): Space widths have synthetic bold applied to them in the fast text codepath but not the complex text codepath
Modified: trunk/LayoutTests/TestExpectations (288785 => 288786)
--- trunk/LayoutTests/TestExpectations 2022-01-29 05:33:17 UTC (rev 288785)
+++ trunk/LayoutTests/TestExpectations 2022-01-29 07:24:13 UTC (rev 288786)
@@ -4756,6 +4756,8 @@
webkit.org/b/229659 imported/w3c/web-platform-tests/css/css-contain/container-queries/pseudo-elements-002.tentative.html [ ImageOnlyFailure ]
webkit.org/b/229659 imported/w3c/web-platform-tests/css/css-contain/container-queries/resize-while-content-visibility-hidden.html [ ImageOnlyFailure ]
webkit.org/b/229659 imported/w3c/web-platform-tests/css/css-contain/container-queries/top-layer-dialog-backdrop.html [ ImageOnlyFailure ]
+webkit.org/b/229659 imported/w3c/web-platform-tests/css/css-contain/container-queries/inline-size-bfc-floats.html [ ImageOnlyFailure ]
+webkit.org/b/229659 imported/w3c/web-platform-tests/css/css-contain/container-queries/whitespace-update-after-removal.html [ ImageOnlyFailure ]
# Flaky css-contain test
imported/w3c/web-platform-tests/css/css-contain/content-visibility/animation-display-lock.html [ Failure Pass ]
Modified: trunk/LayoutTests/imported/w3c/ChangeLog (288785 => 288786)
--- trunk/LayoutTests/imported/w3c/ChangeLog 2022-01-29 05:33:17 UTC (rev 288785)
+++ trunk/LayoutTests/imported/w3c/ChangeLog 2022-01-29 07:24:13 UTC (rev 288786)
@@ -1,3 +1,54 @@
+2022-01-28 Antti Koivisto <[email protected]>
+
+ [CSS container Queries] Include container queries in RuleSets
+ https://bugs.webkit.org/show_bug.cgi?id=235763
+
+ Reviewed by Simon Fraser.
+
+ * web-platform-tests/css/css-contain/container-queries/animation-container-size-expected.txt:
+ * web-platform-tests/css/css-contain/container-queries/animation-container-type-dynamic-expected.txt:
+ * web-platform-tests/css/css-contain/container-queries/animation-nested-animation-expected.txt:
+ * web-platform-tests/css/css-contain/container-queries/animation-nested-transition-expected.txt:
+ * web-platform-tests/css/css-contain/container-queries/aspect-ratio-feature-evaluation-expected.txt:
+ * web-platform-tests/css/css-contain/container-queries/at-container-parsing-expected.txt:
+ * web-platform-tests/css/css-contain/container-queries/auto-scrollbars-expected.txt:
+ * web-platform-tests/css/css-contain/container-queries/backdrop-invalidation-expected.txt:
+ * web-platform-tests/css/css-contain/container-queries/conditional-container-status-expected.txt:
+ * web-platform-tests/css/css-contain/container-queries/container-for-shadow-dom.tentative-expected.txt:
+ * web-platform-tests/css/css-contain/container-queries/container-name-invalidation-expected.txt:
+ * web-platform-tests/css/css-contain/container-queries/container-selection-expected.txt:
+ * web-platform-tests/css/css-contain/container-queries/container-size-invalidation-expected.txt:
+ * web-platform-tests/css/css-contain/container-queries/container-type-invalidation-expected.txt:
+ * web-platform-tests/css/css-contain/container-queries/counters-flex-circular-expected.txt:
+ * web-platform-tests/css/css-contain/container-queries/display-contents-expected.txt:
+ * web-platform-tests/css/css-contain/container-queries/display-none-expected.txt:
+ * web-platform-tests/css/css-contain/container-queries/font-relative-units-dynamic-expected.txt:
+ * web-platform-tests/css/css-contain/container-queries/font-relative-units-expected.txt:
+ * web-platform-tests/css/css-contain/container-queries/get-animations-expected.txt:
+ * web-platform-tests/css/css-contain/container-queries/iframe-invalidation-expected.txt:
+ * web-platform-tests/css/css-contain/container-queries/ineligible-containment-expected.txt:
+ * web-platform-tests/css/css-contain/container-queries/inline-size-and-min-width-expected.txt:
+ * web-platform-tests/css/css-contain/container-queries/inline-size-containment-expected.txt:
+ * web-platform-tests/css/css-contain/container-queries/inline-size-containment-vertical-rl-expected.txt:
+ * web-platform-tests/css/css-contain/container-queries/orthogonal-wm-container-query-expected.txt:
+ * web-platform-tests/css/css-contain/container-queries/percentage-padding-orthogonal-expected.txt:
+ * web-platform-tests/css/css-contain/container-queries/pseudo-elements-001-expected.txt:
+ * web-platform-tests/css/css-contain/container-queries/pseudo-elements-003.tentative-expected.txt:
+ * web-platform-tests/css/css-contain/container-queries/query-content-box-expected.txt:
+ * web-platform-tests/css/css-contain/container-queries/query-evaluation-expected.txt:
+ * web-platform-tests/css/css-contain/container-queries/reattach-container-with-dirty-child-expected.txt:
+ * web-platform-tests/css/css-contain/container-queries/size-container-no-principal-box-expected.txt:
+ * web-platform-tests/css/css-contain/container-queries/size-feature-evaluation-expected.txt:
+ * web-platform-tests/css/css-contain/container-queries/style-change-in-container-expected.txt:
+ * web-platform-tests/css/css-contain/container-queries/top-layer-dialog-container-expected.txt:
+ * web-platform-tests/css/css-contain/container-queries/top-layer-dialog-expected.txt:
+ * web-platform-tests/css/css-contain/container-queries/top-layer-nested-dialog-expected.txt:
+ * web-platform-tests/css/css-contain/container-queries/transition-scrollbars-expected.txt:
+ * web-platform-tests/css/css-contain/container-queries/transition-style-change-event-expected.txt:
+ * web-platform-tests/css/css-contain/container-queries/unsupported-axis-expected.txt:
+ * web-platform-tests/css/css-contain/container-queries/viewport-units-dynamic-expected.txt:
+ * web-platform-tests/css/css-contain/container-queries/viewport-units-expected.txt:
+
2022-01-28 Myles C. Maxfield <[email protected]>
REGRESSION(r281687): Space widths have synthetic bold applied to them in the fast text codepath but not the complex text codepath
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/animation-container-size-expected.txt (288785 => 288786)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/animation-container-size-expected.txt 2022-01-29 05:33:17 UTC (rev 288785)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/animation-container-size-expected.txt 2022-01-29 07:24:13 UTC (rev 288786)
@@ -1,4 +1,4 @@
Test
-FAIL Animation affects container query evaluation assert_equals: expected "rgb(0, 0, 255)" but got "rgb(0, 128, 0)"
+FAIL Animation affects container query evaluation assert_equals: expected "rgb(0, 128, 0)" but got "rgb(0, 0, 255)"
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/animation-container-type-dynamic-expected.txt (288785 => 288786)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/animation-container-type-dynamic-expected.txt 2022-01-29 05:33:17 UTC (rev 288785)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/animation-container-type-dynamic-expected.txt 2022-01-29 07:24:13 UTC (rev 288786)
@@ -1,4 +1,4 @@
Test
-FAIL Animated container creating new container assert_equals: expected "rgb(0, 0, 255)" but got "rgb(255, 0, 0)"
+FAIL Animated container creating new container assert_equals: expected "rgb(0, 0, 255)" but got "rgb(0, 128, 0)"
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/animation-nested-animation-expected.txt (288785 => 288786)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/animation-nested-animation-expected.txt 2022-01-29 05:33:17 UTC (rev 288785)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/animation-nested-animation-expected.txt 2022-01-29 07:24:13 UTC (rev 288786)
@@ -1,4 +1,4 @@
Test
-FAIL Animated container can create inner animation assert_equals: expected "rgb(0, 0, 255)" but got "rgb(0, 128, 0)"
+FAIL Animated container can create inner animation assert_equals: expected "rgb(0, 128, 0)" but got "rgb(0, 0, 255)"
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/animation-nested-transition-expected.txt (288785 => 288786)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/animation-nested-transition-expected.txt 2022-01-29 05:33:17 UTC (rev 288785)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/animation-nested-transition-expected.txt 2022-01-29 07:24:13 UTC (rev 288786)
@@ -1,4 +1,4 @@
Test
-FAIL Animated container size triggers transition assert_equals: expected "rgb(150, 150, 150)" but got "rgb(100, 100, 100)"
+FAIL Animated container size triggers transition assert_equals: expected "rgb(100, 100, 100)" but got "rgb(200, 200, 200)"
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/aspect-ratio-feature-evaluation-expected.txt (288785 => 288786)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/aspect-ratio-feature-evaluation-expected.txt 2022-01-29 05:33:17 UTC (rev 288785)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/aspect-ratio-feature-evaluation-expected.txt 2022-01-29 07:24:13 UTC (rev 288786)
@@ -1,4 +1,4 @@
-FAIL @container queries with aspect-ratio and size containment assert_equals: Should match for block-size containment expected "rgb(0, 128, 0)" but got "rgb(255, 0, 0)"
-FAIL @container query with aspect-ratio change after resize assert_equals: Should match 2/1 min-ratio expected "rgb(0, 255, 0)" but got "rgba(0, 0, 0, 0)"
+FAIL @container queries with aspect-ratio and size containment assert_equals: Should not match for inline-size containment expected "rgb(255, 0, 0)" but got "rgb(0, 128, 0)"
+PASS @container query with aspect-ratio change after resize
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/at-container-parsing-expected.txt (288785 => 288786)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/at-container-parsing-expected.txt 2022-01-29 05:33:17 UTC (rev 288785)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/at-container-parsing-expected.txt 2022-01-29 07:24:13 UTC (rev 288786)
@@ -1,38 +1,38 @@
-FAIL size(width) assert_equals: expected "true" but got ""
-FAIL size(min-width: 0px) assert_equals: expected "true" but got ""
-FAIL size(max-width: 0px) assert_equals: expected "true" but got ""
-FAIL size(height) assert_equals: expected "true" but got ""
-FAIL size(min-height: 0px) assert_equals: expected "true" but got ""
-FAIL size(max-height: 0px) assert_equals: expected "true" but got ""
-FAIL size(aspect-ratio) assert_equals: expected "true" but got ""
-FAIL size(min-aspect-ratio: 1/2) assert_equals: expected "true" but got ""
-FAIL size(max-aspect-ratio: 1/2) assert_equals: expected "true" but got ""
-FAIL size(orientation: portrait) assert_equals: expected "true" but got ""
-FAIL size(inline-size) assert_equals: expected "true" but got ""
-FAIL size(min-inline-size: 0px) assert_equals: expected "true" but got ""
-FAIL size(max-inline-size: 0px) assert_equals: expected "true" but got ""
-FAIL size(block-size) assert_equals: expected "true" but got ""
-FAIL size(min-block-size: 0px) assert_equals: expected "true" but got ""
-FAIL size(max-block-size: 0px) assert_equals: expected "true" but got ""
-FAIL size(width: 100px) assert_equals: expected "true" but got ""
-FAIL size((width: 100px)) assert_equals: expected "true" but got ""
-FAIL size(not (width: 100px)) assert_equals: expected "true" but got ""
-FAIL size((width: 100px) and (height: 100px)) assert_equals: expected "true" but got ""
-FAIL size((width: 50px) or (height: 100px)) assert_equals: expected "true" but got ""
-FAIL size(width < 100px) assert_equals: expected "true" but got ""
-FAIL size(100px < width) assert_equals: expected "true" but got ""
-FAIL size(100px < width < 200px) assert_equals: expected "true" but got ""
-PASS foo(width)
-PASS size(asdf)
-PASS size(resolution > 100dpi)
-PASS size(resolution: 150dpi)
-PASS size(color)
-PASS size(min-color: 1)
-PASS size(color-index >= 1)
-PASS (color-index >= 1)
-PASS size(grid)
-PASS (grid)
+PASS size(width)
+PASS size(min-width: 0px)
+PASS size(max-width: 0px)
+PASS size(height)
+PASS size(min-height: 0px)
+PASS size(max-height: 0px)
+PASS size(aspect-ratio)
+PASS size(min-aspect-ratio: 1/2)
+PASS size(max-aspect-ratio: 1/2)
+PASS size(orientation: portrait)
+PASS size(inline-size)
+PASS size(min-inline-size: 0px)
+PASS size(max-inline-size: 0px)
+PASS size(block-size)
+PASS size(min-block-size: 0px)
+PASS size(max-block-size: 0px)
+PASS size(width: 100px)
+PASS size((width: 100px))
+PASS size(not (width: 100px))
+PASS size((width: 100px) and (height: 100px))
+PASS size((width: 50px) or (height: 100px))
+PASS size(width < 100px)
+PASS size(100px < width)
+PASS size(100px < width < 200px)
+FAIL foo(width) assert_equals: expected "" but got "true"
+FAIL size(asdf) assert_equals: expected "" but got "true"
+FAIL size(resolution > 100dpi) assert_equals: expected "" but got "true"
+FAIL size(resolution: 150dpi) assert_equals: expected "" but got "true"
+FAIL size(color) assert_equals: expected "" but got "true"
+FAIL size(min-color: 1) assert_equals: expected "" but got "true"
+FAIL size(color-index >= 1) assert_equals: expected "" but got "true"
+FAIL (color-index >= 1) assert_equals: expected "" but got "true"
+FAIL size(grid) assert_equals: expected "" but got "true"
+FAIL (grid) assert_equals: expected "" but got "true"
PASS screen
PASS print
PASS not print
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/auto-scrollbars-expected.txt (288785 => 288786)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/auto-scrollbars-expected.txt 2022-01-29 05:33:17 UTC (rev 288785)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/auto-scrollbars-expected.txt 2022-01-29 07:24:13 UTC (rev 288786)
@@ -1,4 +1,4 @@
-FAIL Initial layout - expecting a scrollbar without overflowing content instead of overflowing content without a scrollbar assert_equals: Layout with a scrollbar means the container query applies expected "50px" but got "100px"
-FAIL Same result after a reflow assert_equals: Layout with a scrollbar means the container query applies expected "50px" but got "100px"
+FAIL Initial layout - expecting a scrollbar without overflowing content instead of overflowing content without a scrollbar assert_less_than: Expects a vertical scrollbar expected a number less than 100 but got 100
+FAIL Same result after a reflow assert_less_than: Expects a vertical scrollbar expected a number less than 100 but got 100
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/backdrop-invalidation-expected.txt (288785 => 288786)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/backdrop-invalidation-expected.txt 2022-01-29 05:33:17 UTC (rev 288785)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/backdrop-invalidation-expected.txt 2022-01-29 07:24:13 UTC (rev 288786)
@@ -1,3 +1,3 @@
-FAIL Pseudo-element ::backdrop responds to container size changes assert_equals: expected "rgb(0, 128, 0)" but got "rgb(0, 0, 0)"
+FAIL Pseudo-element ::backdrop responds to container size changes assert_equals: expected "rgb(0, 0, 0)" but got "rgb(0, 128, 0)"
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/conditional-container-status-expected.txt (288785 => 288786)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/conditional-container-status-expected.txt 2022-01-29 05:33:17 UTC (rev 288785)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/conditional-container-status-expected.txt 2022-01-29 07:24:13 UTC (rev 288786)
@@ -1,4 +1,4 @@
You should see a green border around this text
-FAIL Conditionally applying container-type:initial assert_equals: expected "rgb(0, 128, 0)" but got "rgb(0, 0, 0)"
+PASS Conditionally applying container-type:initial
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/container-for-shadow-dom.tentative-expected.txt (288785 => 288786)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/container-for-shadow-dom.tentative-expected.txt 2022-01-29 05:33:17 UTC (rev 288785)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/container-for-shadow-dom.tentative-expected.txt 2022-01-29 07:24:13 UTC (rev 288786)
@@ -1,6 +1,6 @@
FAIL Match container in outer tree null is not an object (evaluating 'document.querySelector("#inclusive-ancestor-across-root > div").shadowRoot.querySelector')
-FAIL Match container in same tree, not walking flat tree ancestors assert_equals: expected "rgb(0, 128, 0)" but got "rgb(0, 0, 0)"
+PASS Match container in same tree, not walking flat tree ancestors
FAIL Match container in ::slotted selector's originating element tree assert_equals: expected "rgb(0, 128, 0)" but got "rgb(0, 0, 0)"
FAIL Match container in outer tree for :host assert_equals: expected "rgb(0, 128, 0)" but got "rgb(0, 0, 0)"
FAIL Match container in ::part selector's originating element tree null is not an object (evaluating 'document.querySelector("#inclusive-ancestor-part > div").shadowRoot.querySelector')
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/container-name-invalidation-expected.txt (288785 => 288786)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/container-name-invalidation-expected.txt 2022-01-29 05:33:17 UTC (rev 288785)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/container-name-invalidation-expected.txt 2022-01-29 07:24:13 UTC (rev 288786)
@@ -1,5 +1,5 @@
Test
-FAIL Changing a named container invalidates relevant descendants assert_equals: expected "rgb(0, 128, 0)" but got "rgb(0, 0, 0)"
-FAIL Changing container-name invalidates relevant descendants assert_equals: expected "rgb(0, 128, 0)" but got "rgb(0, 0, 0)"
+FAIL Changing a named container invalidates relevant descendants assert_equals: expected "rgb(0, 0, 0)" but got "rgb(0, 128, 0)"
+FAIL Changing container-name invalidates relevant descendants assert_equals: expected "rgb(0, 0, 0)" but got "rgb(0, 128, 0)"
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/container-selection-expected.txt (288785 => 288786)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/container-selection-expected.txt 2022-01-29 05:33:17 UTC (rev 288785)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/container-selection-expected.txt 2022-01-29 07:24:13 UTC (rev 288786)
@@ -1,27 +1,27 @@
-FAIL size(width: 16px) for .size > .inline > span assert_equals: expected "true" but got ""
-FAIL size(height: 16px) for .inline > .size > span assert_equals: expected "true" but got ""
-FAIL size(width: 16px) for .inline > .size > span assert_equals: expected "true" but got ""
-PASS size(height) for .size > .inline > span
-FAIL type(inline-size) size(width: 16px) for .inline > .size > span assert_equals: expected "true" but got ""
-FAIL type(inline-size) size(width: 16px) for .size > .inline > span assert_equals: expected "true" but got ""
-FAIL type(size) size(height: 16px) for .inline > .size > span assert_equals: expected "true" but got ""
-FAIL type(size) size(height: 32px) for .size > .inline > span assert_equals: expected "true" but got ""
-PASS type(size) size(height) for .inline > .inline > span
-FAIL name(a) size(width: 32px) for .a-size > .b-size > span assert_equals: expected "true" but got ""
-FAIL name(b) size(width: 16px) for .a-size > .b-size > span assert_equals: expected "true" but got ""
-PASS name(c) size(width) for .a-size > .b-size > span
-FAIL name(a) size(width: 16px) for .a-size > .a-size > span assert_equals: expected "true" but got ""
-FAIL a size(width: 32px) for .a-size > .b-size > span assert_equals: expected "true" but got ""
-FAIL b size(width: 16px) for .a-size > .b-size > span assert_equals: expected "true" but got ""
-PASS c size(width) for .a-size > .b-size > span
-FAIL a size(width: 16px) for .a-size > .a-size > span assert_equals: expected "true" but got ""
-FAIL a size(width: 32px) for .a-size > .a > span assert_equals: expected "true" but got ""
-FAIL name(a) type(inline-size) size(width: 8px) for .a-size > .b-size > .a-inline > span assert_equals: expected "true" but got ""
-FAIL name(b) type(inline-size) size(width: 16px) for .a-size > .b-size > .a-inline > span assert_equals: expected "true" but got ""
-FAIL name(a) type(size) size(width: 32px) for .a-size > .b-size > .a-inline > span assert_equals: expected "true" but got ""
-FAIL name(b) type(size) size(width: 16px) for .a-size > .b-size > .a-inline > span assert_equals: expected "true" but got ""
+PASS size(width: 16px) for .size > .inline > span
+PASS size(height: 16px) for .inline > .size > span
+PASS size(width: 16px) for .inline > .size > span
+FAIL size(height) for .size > .inline > span assert_equals: expected "" but got "true"
+PASS type(inline-size) size(width: 16px) for .inline > .size > span
+PASS type(inline-size) size(width: 16px) for .size > .inline > span
+PASS type(size) size(height: 16px) for .inline > .size > span
+PASS type(size) size(height: 32px) for .size > .inline > span
+FAIL type(size) size(height) for .inline > .inline > span assert_equals: expected "" but got "true"
+PASS name(a) size(width: 32px) for .a-size > .b-size > span
+PASS name(b) size(width: 16px) for .a-size > .b-size > span
+FAIL name(c) size(width) for .a-size > .b-size > span assert_equals: expected "" but got "true"
+PASS name(a) size(width: 16px) for .a-size > .a-size > span
+PASS a size(width: 32px) for .a-size > .b-size > span
+PASS b size(width: 16px) for .a-size > .b-size > span
+FAIL c size(width) for .a-size > .b-size > span assert_equals: expected "" but got "true"
+PASS a size(width: 16px) for .a-size > .a-size > span
+PASS a size(width: 32px) for .a-size > .a > span
+PASS name(a) type(inline-size) size(width: 8px) for .a-size > .b-size > .a-inline > span
+PASS name(b) type(inline-size) size(width: 16px) for .a-size > .b-size > .a-inline > span
+PASS name(a) type(size) size(width: 32px) for .a-size > .b-size > .a-inline > span
+PASS name(b) type(size) size(width: 16px) for .a-size > .b-size > .a-inline > span
PASS name(a) type(size) size(width) for .a-inline > .b-size
-FAIL type(inline-size) name(a) size(width: 8px) for .a-size > .b-size > .a-inline > span assert_equals: expected "true" but got ""
-FAIL type(size) name(a) size(height: 32px) for .a-size > .b-size > .a-inline > span assert_equals: expected "true" but got ""
+PASS type(inline-size) name(a) size(width: 8px) for .a-size > .b-size > .a-inline > span
+PASS type(size) name(a) size(height: 32px) for .a-size > .b-size > .a-inline > span
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/container-size-invalidation-expected.txt (288785 => 288786)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/container-size-invalidation-expected.txt 2022-01-29 05:33:17 UTC (rev 288785)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/container-size-invalidation-expected.txt 2022-01-29 07:24:13 UTC (rev 288786)
@@ -2,6 +2,6 @@
Deep
-FAIL Children respond to changes in container size assert_equals: expected "rgb(0, 128, 0)" but got "rgb(255, 0, 0)"
-FAIL Descendants respond to changes in container size assert_equals: expected "rgb(0, 128, 0)" but got "rgb(255, 0, 0)"
+FAIL Children respond to changes in container size assert_equals: expected "rgb(255, 0, 0)" but got "rgb(0, 128, 0)"
+FAIL Descendants respond to changes in container size assert_equals: expected "rgb(255, 0, 0)" but got "rgb(0, 128, 0)"
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/container-type-invalidation-expected.txt (288785 => 288786)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/container-type-invalidation-expected.txt 2022-01-29 05:33:17 UTC (rev 288785)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/container-type-invalidation-expected.txt 2022-01-29 07:24:13 UTC (rev 288786)
@@ -1,4 +1,4 @@
Test
-FAIL Changing the container type invalidates relevant descendants assert_equals: expected "rgb(0, 128, 0)" but got "rgb(0, 0, 0)"
+FAIL Changing the container type invalidates relevant descendants assert_equals: expected "rgb(0, 0, 0)" but got "rgb(0, 128, 0)"
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/counters-flex-circular-expected.txt (288785 => 288786)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/counters-flex-circular-expected.txt 2022-01-29 05:33:17 UTC (rev 288785)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/counters-flex-circular-expected.txt 2022-01-29 07:24:13 UTC (rev 288786)
@@ -1,6 +1,6 @@
PASS #item1, #container, and #inner should all have the same width: 150
-FAIL The container query should match the layed out width assert_equals: expected "rgb(0, 128, 0)" but got "rgba(0, 0, 0, 0)"
+PASS The container query should match the layed out width
PASS The sum of the item widths should match the flexbox width
PASS The size of the flex item #2 should be given by its contents
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/display-contents-expected.txt (288785 => 288786)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/display-contents-expected.txt 2022-01-29 05:33:17 UTC (rev 288785)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/display-contents-expected.txt 2022-01-29 07:24:13 UTC (rev 288786)
@@ -1,5 +1,5 @@
-PASS getComputedStyle when container is display:contents
-FAIL getComputedStyle when container becomes display:contents assert_equals: expected "30" but got ""
-FAIL getComputedStyle when intermediate container becomes display:contents assert_equals: expected "30" but got ""
+FAIL getComputedStyle when container is display:contents assert_equals: expected "" but got "50"
+FAIL getComputedStyle when container becomes display:contents assert_equals: expected "30" but got "50"
+FAIL getComputedStyle when intermediate container becomes display:contents assert_equals: expected "30" but got "50"
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/display-none-expected.txt (288785 => 288786)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/display-none-expected.txt 2022-01-29 05:33:17 UTC (rev 288785)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/display-none-expected.txt 2022-01-29 07:24:13 UTC (rev 288786)
@@ -1,19 +1,19 @@
-FAIL getComputedStyle when element is display:none assert_equals: expected "30" but got ""
-FAIL getComputedStyle when parent is display:none assert_equals: expected "30" but got ""
-FAIL getComputedStyle when ancestor is display:none assert_equals: expected "30" but got ""
-PASS getComputedStyle when container is display:none
-FAIL getComputedStyle when element in nested container is display:none assert_equals: expected "30" but got ""
-PASS getComputedStyle when inner container is display:none
-PASS getComputedStyle when intermediate ancestor is display:none
-PASS getComputedStyle when outer container is display:none
-FAIL getComputedStyle when element becomes display:none assert_equals: expected "30" but got ""
-FAIL getComputedStyle when parent becomes display:none assert_equals: expected "30" but got ""
-FAIL getComputedStyle when ancestor becomes display:none assert_equals: expected "30" but got ""
-FAIL getComputedStyle when container becomes display:none assert_equals: expected "30" but got ""
-FAIL getComputedStyle when intermediate container becomes display:none assert_equals: expected "30" but got ""
-FAIL getComputedStyle when ::before is display:none assert_equals: expected "30" but got ""
-FAIL getComputedStyle when originating element is display:none assert_equals: expected "30" but got ""
-FAIL getComputedStyle on ::before when ancestor element is display:none assert_equals: expected "30" but got ""
-PASS getComputedStyle on ::before when container is display:none
+FAIL getComputedStyle when element is display:none assert_equals: expected "30" but got "50"
+FAIL getComputedStyle when parent is display:none assert_equals: expected "30" but got "50"
+FAIL getComputedStyle when ancestor is display:none assert_equals: expected "30" but got "50"
+FAIL getComputedStyle when container is display:none assert_equals: expected "" but got "50"
+FAIL getComputedStyle when element in nested container is display:none assert_equals: expected "30" but got "50"
+FAIL getComputedStyle when inner container is display:none assert_equals: expected "" but got "50"
+FAIL getComputedStyle when intermediate ancestor is display:none assert_equals: expected "" but got "50"
+FAIL getComputedStyle when outer container is display:none assert_equals: expected "" but got "50"
+FAIL getComputedStyle when element becomes display:none assert_equals: expected "30" but got "50"
+FAIL getComputedStyle when parent becomes display:none assert_equals: expected "30" but got "50"
+FAIL getComputedStyle when ancestor becomes display:none assert_equals: expected "30" but got "50"
+FAIL getComputedStyle when container becomes display:none assert_equals: expected "30" but got "50"
+FAIL getComputedStyle when intermediate container becomes display:none assert_equals: expected "30" but got "50"
+FAIL getComputedStyle when ::before is display:none assert_equals: expected "30" but got "50"
+FAIL getComputedStyle when originating element is display:none assert_equals: expected "30" but got "50"
+FAIL getComputedStyle on ::before when ancestor element is display:none assert_equals: expected "30" but got "50"
+FAIL getComputedStyle on ::before when container is display:none assert_equals: expected "" but got "50"
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/font-relative-units-dynamic-expected.txt (288785 => 288786)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/font-relative-units-dynamic-expected.txt 2022-01-29 05:33:17 UTC (rev 288785)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/font-relative-units-dynamic-expected.txt 2022-01-29 07:24:13 UTC (rev 288786)
@@ -1,10 +1,10 @@
-PASS em relative before change
-PASS rem relative before change
-PASS ex relative before change
-PASS ch relative before change
-FAIL em relative after change assert_equals: expected "rgb(0, 128, 0)" but got "rgb(255, 0, 0)"
-FAIL rem relative after change assert_equals: expected "rgb(0, 128, 0)" but got "rgb(255, 0, 0)"
-FAIL ex relative after change assert_equals: expected "rgb(0, 128, 0)" but got "rgb(255, 0, 0)"
-FAIL ch relative after change assert_equals: expected "rgb(0, 128, 0)" but got "rgb(255, 0, 0)"
+FAIL em relative before change assert_equals: expected "rgb(255, 0, 0)" but got "rgb(0, 128, 0)"
+FAIL rem relative before change assert_equals: expected "rgb(255, 0, 0)" but got "rgb(0, 128, 0)"
+FAIL ex relative before change assert_equals: expected "rgb(255, 0, 0)" but got "rgb(0, 128, 0)"
+FAIL ch relative before change assert_equals: expected "rgb(255, 0, 0)" but got "rgb(0, 128, 0)"
+PASS em relative after change
+PASS rem relative after change
+PASS ex relative after change
+PASS ch relative after change
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/font-relative-units-expected.txt (288785 => 288786)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/font-relative-units-expected.txt 2022-01-29 05:33:17 UTC (rev 288785)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/font-relative-units-expected.txt 2022-01-29 07:24:13 UTC (rev 288786)
@@ -1,6 +1,6 @@
-FAIL em relative inline-size assert_equals: expected "rgb(0, 128, 0)" but got "rgb(0, 0, 0)"
-FAIL rem relative inline-size assert_equals: expected "rgb(0, 128, 0)" but got "rgb(0, 0, 0)"
-FAIL ex relative inline-size assert_equals: expected "rgb(0, 128, 0)" but got "rgb(0, 0, 0)"
-FAIL ch relative inline-size assert_equals: expected "rgb(0, 128, 0)" but got "rgb(0, 0, 0)"
+PASS em relative inline-size
+PASS rem relative inline-size
+PASS ex relative inline-size
+PASS ch relative inline-size
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/get-animations-expected.txt (288785 => 288786)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/get-animations-expected.txt 2022-01-29 05:33:17 UTC (rev 288785)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/get-animations-expected.txt 2022-01-29 07:24:13 UTC (rev 288786)
@@ -1,4 +1,4 @@
Green
-FAIL Calling getAnimations updates layout of parent frame if needed assert_equals: expected 1 but got 0
+FAIL Calling getAnimations updates layout of parent frame if needed assert_equals: expected "rgb(255, 0, 0)" but got "rgb(0, 128, 0)"
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/iframe-invalidation-expected.txt (288785 => 288786)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/iframe-invalidation-expected.txt 2022-01-29 05:33:17 UTC (rev 288785)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/iframe-invalidation-expected.txt 2022-01-29 07:24:13 UTC (rev 288786)
@@ -1,4 +1,4 @@
-FAIL @container-dependent elements respond to iframe size changes assert_equals: expected "rgb(0, 128, 0)" but got "rgb(255, 0, 0)"
+FAIL @container-dependent elements respond to iframe size changes assert_equals: expected "rgb(255, 0, 0)" but got "rgb(0, 128, 0)"
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/ineligible-containment-expected.txt (288785 => 288786)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/ineligible-containment-expected.txt 2022-01-29 05:33:17 UTC (rev 288785)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/ineligible-containment-expected.txt 2022-01-29 07:24:13 UTC (rev 288786)
@@ -3,6 +3,6 @@
Test1
-PASS Container ineligible for containment
-FAIL Changing containment eligibility invalidates style assert_equals: expected "rgb(255, 0, 0)" but got "rgb(0, 128, 0)"
+FAIL Container ineligible for containment assert_equals: expected "rgb(0, 128, 0)" but got "rgb(255, 0, 0)"
+FAIL Changing containment eligibility invalidates style assert_equals: expected "rgb(0, 128, 0)" but got "rgb(255, 0, 0)"
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/inline-size-and-min-width-expected.txt (288785 => 288786)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/inline-size-and-min-width-expected.txt 2022-01-29 05:33:17 UTC (rev 288785)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/inline-size-and-min-width-expected.txt 2022-01-29 07:24:13 UTC (rev 288786)
@@ -1,4 +1,4 @@
Green
-FAIL min-width of inline-size container affects container size assert_equals: expected "rgb(0, 128, 0)" but got "rgb(0, 0, 0)"
+PASS min-width of inline-size container affects container size
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/inline-size-containment-expected.txt (288785 => 288786)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/inline-size-containment-expected.txt 2022-01-29 05:33:17 UTC (rev 288785)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/inline-size-containment-expected.txt 2022-01-29 07:24:13 UTC (rev 288786)
@@ -1,3 +1,3 @@
-FAIL inline-size containment only assert_equals: expected 400 but got 50
+FAIL inline-size containment only assert_equals: expected 400 but got 20
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/inline-size-containment-vertical-rl-expected.txt (288785 => 288786)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/inline-size-containment-vertical-rl-expected.txt 2022-01-29 05:33:17 UTC (rev 288785)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/inline-size-containment-vertical-rl-expected.txt 2022-01-29 07:24:13 UTC (rev 288786)
@@ -1,3 +1,3 @@
-FAIL inline-size containment only assert_equals: expected 400 but got 50
+FAIL inline-size containment only assert_equals: expected 400 but got 20
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/orthogonal-wm-container-query-expected.txt (288785 => 288786)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/orthogonal-wm-container-query-expected.txt 2022-01-29 05:33:17 UTC (rev 288785)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/orthogonal-wm-container-query-expected.txt 2022-01-29 07:24:13 UTC (rev 288786)
@@ -1,5 +1,5 @@
XX
-PASS Initial non-orthogonal width
-FAIL Orthogonal width assert_equals: expected 50 but got 100
+FAIL Initial non-orthogonal width assert_equals: expected 400 but got 50
+PASS Orthogonal width
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/percentage-padding-orthogonal-expected.txt (288785 => 288786)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/percentage-padding-orthogonal-expected.txt 2022-01-29 05:33:17 UTC (rev 288785)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/percentage-padding-orthogonal-expected.txt 2022-01-29 07:24:13 UTC (rev 288786)
@@ -1,8 +1,8 @@
FAIL #container height measured with 500px width. Both container children visible assert_equals: expected 100 but got 0
FAIL #container width 400px after padding is applied. assert_equals: expected 400 but got 500
-FAIL #container width 400px after padding is applied. #second is removed from the rendering assert_equals: expected 50 but got 100
+PASS #container width 400px after padding is applied. #second is removed from the rendering
FAIL #container height measured with 499px width. Both container children visible assert_equals: expected 100 but got 0
FAIL #container width 399px after padding is applied. #second is removed from the rendering assert_equals: expected 399 but got 500
-FAIL #container width 399x after padding is applied. #second is removed from the rendering assert_equals: expected 50 but got 100
+PASS #container width 399x after padding is applied. #second is removed from the rendering
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/pseudo-elements-001-expected.txt (288785 => 288786)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/pseudo-elements-001-expected.txt 2022-01-29 05:33:17 UTC (rev 288785)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/pseudo-elements-001-expected.txt 2022-01-29 07:24:13 UTC (rev 288786)
@@ -1,6 +1,6 @@
test
One
-FAIL Pseudo-elements ::before and ::after respond to container size changes assert_equals: expected "\"before\"" but got "none"
-FAIL Pseudo-element ::marker responds to container size changes assert_equals: expected "rgb(0, 128, 0)" but got "rgb(0, 0, 0)"
+FAIL Pseudo-elements ::before and ::after respond to container size changes assert_equals: expected "none" but got "\"before\""
+FAIL Pseudo-element ::marker responds to container size changes assert_equals: expected "rgb(0, 0, 0)" but got "rgb(0, 128, 0)"
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/pseudo-elements-003.tentative-expected.txt (288785 => 288786)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/pseudo-elements-003.tentative-expected.txt 2022-01-29 05:33:17 UTC (rev 288785)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/pseudo-elements-003.tentative-expected.txt 2022-01-29 07:24:13 UTC (rev 288786)
@@ -1,12 +1,12 @@
First-line
First-line
-FAIL Originating element container for ::before assert_equals: expected "rgb(0, 128, 0)" but got "rgb(0, 0, 0)"
-FAIL Originating element container for ::after assert_equals: expected "rgb(0, 128, 0)" but got "rgb(0, 0, 0)"
-FAIL Originating element container for ::marker assert_equals: expected "rgb(0, 128, 0)" but got "rgb(0, 0, 0)"
-FAIL Originating element container for ::first-line assert_equals: expected "rgb(0, 128, 0)" but got "rgb(0, 0, 0)"
-FAIL Originating element container for ::first-letter assert_equals: expected "rgb(0, 128, 0)" but got "rgb(0, 0, 0)"
-FAIL Originating element container for outer ::first-line assert_equals: expected "rgb(0, 128, 0)" but got "rgb(0, 0, 0)"
-FAIL Originating element container for outer ::first-letter assert_equals: expected "rgb(0, 128, 0)" but got "rgb(0, 0, 0)"
-FAIL Originating element container for ::backdrop assert_equals: ::backdrop rendered expected "rgb(0, 128, 0)" but got "rgb(0, 255, 0)"
+PASS Originating element container for ::before
+PASS Originating element container for ::after
+PASS Originating element container for ::marker
+PASS Originating element container for ::first-line
+PASS Originating element container for ::first-letter
+PASS Originating element container for outer ::first-line
+PASS Originating element container for outer ::first-letter
+FAIL Originating element container for ::backdrop assert_equals: ::backdrop not rendered expected "rgb(0, 255, 0)" but got "rgb(0, 128, 0)"
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/query-content-box-expected.txt (288785 => 288786)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/query-content-box-expected.txt 2022-01-29 05:33:17 UTC (rev 288785)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/query-content-box-expected.txt 2022-01-29 07:24:13 UTC (rev 288786)
@@ -1,6 +1,6 @@
-FAIL Size queries with content-box sizing assert_equals: expected "rgb(0, 128, 0)" but got "rgba(0, 0, 0, 0)"
-FAIL Size queries with border-box sizing assert_equals: expected "rgb(0, 128, 0)" but got "rgba(0, 0, 0, 0)"
-FAIL Size queries with content-box sizing and overflow:scroll assert_equals: expected "rgb(0, 128, 0)" but got "rgba(0, 0, 0, 0)"
-FAIL Size queries with border-box sizing and overflow:scroll assert_equals: expected "rgb(0, 128, 0)" but got "rgba(0, 0, 0, 0)"
+PASS Size queries with content-box sizing
+PASS Size queries with border-box sizing
+PASS Size queries with content-box sizing and overflow:scroll
+PASS Size queries with border-box sizing and overflow:scroll
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/query-evaluation-expected.txt (288785 => 288786)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/query-evaluation-expected.txt 2022-01-29 05:33:17 UTC (rev 288785)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/query-evaluation-expected.txt 2022-01-29 07:24:13 UTC (rev 288786)
@@ -1,71 +1,71 @@
-FAIL size(width) assert_equals: expected "true" but got "false"
-PASS size(height)
-PASS size(unknown)
-PASS unknown(width)
-FAIL (size(width)) assert_equals: expected "true" but got "false"
-PASS (size(height))
-PASS (size(unknown))
-FAIL (((size(width)))) assert_equals: expected "true" but got "false"
-PASS (((size(height))))
-PASS (((size(unknown))))
-PASS (not size(width))
-FAIL (not size(height)) assert_equals: expected "true" but got "false"
-PASS (not size(unknown))
-PASS (not unknown(width))
-FAIL (size(width) and size(width)) assert_equals: expected "true" but got "false"
-FAIL (size(width) and size(width) and size(width)) assert_equals: expected "true" but got "false"
-PASS (size(height) and size(height))
-PASS (size(height) and size(width) and size(width))
-PASS (size(width) and size(height) and size(width))
-PASS (size(width) and size(width) and size(height))
-PASS (size(unknown) and size(width) and size(width))
-PASS (size(width) and size(unknown) and size(width))
-PASS (size(width) and size(width) and size(unknown))
-FAIL (size(width) or size(width)) assert_equals: expected "true" but got "false"
-FAIL (size(width) or size(width) or size(width)) assert_equals: expected "true" but got "false"
-PASS (size(height) or size(height))
-FAIL (size(height) or size(width) or size(width)) assert_equals: expected "true" but got "false"
-FAIL (size(width) or size(height) or size(width)) assert_equals: expected "true" but got "false"
-FAIL (size(width) or size(width) or size(height)) assert_equals: expected "true" but got "false"
-FAIL (size(unknown) or size(width) or size(width)) assert_equals: expected "true" but got "false"
-FAIL (size(width) or size(unknown) or size(width)) assert_equals: expected "true" but got "false"
-FAIL (size(width) or size(width) or size(unknown)) assert_equals: expected "true" but got "false"
-FAIL (size(unknown) or size(height) or size(width)) assert_equals: expected "true" but got "false"
-PASS (not (size(width) and size(width)))
-FAIL (not (size(width) and size(height))) assert_equals: expected "true" but got "false"
-PASS (size(width) and (not (size(height) or size(width))))
-FAIL (size(height) or (not (size(height) and size(width)))) assert_equals: expected "true" but got "false"
-PASS (size(height) or (size(height) and size(width)))
-FAIL size((width)) assert_equals: expected "true" but got "false"
-PASS size((height))
-PASS size((unknown))
-PASS unknown((width))
-PASS size(not (width))
-FAIL size(not (height)) assert_equals: expected "true" but got "false"
-PASS size(not (unknown))
-FAIL size((width) and (width)) assert_equals: expected "true" but got "false"
-FAIL size((width) and (width) and (width)) assert_equals: expected "true" but got "false"
-PASS size((height) and (height))
-PASS size((height) and (width) and (width))
-PASS size((width) and (height) and (width))
-PASS size((width) and (width) and (height))
-PASS size((unknown) and (width) and (width))
-PASS size((width) and (unknown) and (width))
-PASS size((width) and (width) and (unknown))
-FAIL size((width) or (width)) assert_equals: expected "true" but got "false"
-FAIL size((width) or (width) or (width)) assert_equals: expected "true" but got "false"
-PASS size((height) or (height))
-FAIL size((height) or (width) or (width)) assert_equals: expected "true" but got "false"
-FAIL size((width) or (height) or (width)) assert_equals: expected "true" but got "false"
-FAIL size((width) or (width) or (height)) assert_equals: expected "true" but got "false"
-FAIL size((unknown) or (width) or (width)) assert_equals: expected "true" but got "false"
-FAIL size((width) or (unknown) or (width)) assert_equals: expected "true" but got "false"
-FAIL size((width) or (width) or (unknown)) assert_equals: expected "true" but got "false"
-FAIL size((unknown) or (height) or (width)) assert_equals: expected "true" but got "false"
-PASS size(not ((width) and (width)))
-FAIL size(not ((width) and (height))) assert_equals: expected "true" but got "false"
-PASS size((width) and (not ((height) or (width))))
-FAIL size((height) or (not ((height) and (width)))) assert_equals: expected "true" but got "false"
-PASS size((height) or ((height) and (width)))
+PASS size(width)
+FAIL size(height) assert_equals: expected "false" but got "true"
+FAIL size(unknown) assert_equals: expected "false" but got "true"
+FAIL unknown(width) assert_equals: expected "false" but got "true"
+PASS (size(width))
+FAIL (size(height)) assert_equals: expected "false" but got "true"
+FAIL (size(unknown)) assert_equals: expected "false" but got "true"
+PASS (((size(width))))
+FAIL (((size(height)))) assert_equals: expected "false" but got "true"
+FAIL (((size(unknown)))) assert_equals: expected "false" but got "true"
+FAIL (not size(width)) assert_equals: expected "false" but got "true"
+PASS (not size(height))
+FAIL (not size(unknown)) assert_equals: expected "false" but got "true"
+FAIL (not unknown(width)) assert_equals: expected "false" but got "true"
+PASS (size(width) and size(width))
+PASS (size(width) and size(width) and size(width))
+FAIL (size(height) and size(height)) assert_equals: expected "false" but got "true"
+FAIL (size(height) and size(width) and size(width)) assert_equals: expected "false" but got "true"
+FAIL (size(width) and size(height) and size(width)) assert_equals: expected "false" but got "true"
+FAIL (size(width) and size(width) and size(height)) assert_equals: expected "false" but got "true"
+FAIL (size(unknown) and size(width) and size(width)) assert_equals: expected "false" but got "true"
+FAIL (size(width) and size(unknown) and size(width)) assert_equals: expected "false" but got "true"
+FAIL (size(width) and size(width) and size(unknown)) assert_equals: expected "false" but got "true"
+PASS (size(width) or size(width))
+PASS (size(width) or size(width) or size(width))
+FAIL (size(height) or size(height)) assert_equals: expected "false" but got "true"
+PASS (size(height) or size(width) or size(width))
+PASS (size(width) or size(height) or size(width))
+PASS (size(width) or size(width) or size(height))
+PASS (size(unknown) or size(width) or size(width))
+PASS (size(width) or size(unknown) or size(width))
+PASS (size(width) or size(width) or size(unknown))
+PASS (size(unknown) or size(height) or size(width))
+FAIL (not (size(width) and size(width))) assert_equals: expected "false" but got "true"
+PASS (not (size(width) and size(height)))
+FAIL (size(width) and (not (size(height) or size(width)))) assert_equals: expected "false" but got "true"
+PASS (size(height) or (not (size(height) and size(width))))
+FAIL (size(height) or (size(height) and size(width))) assert_equals: expected "false" but got "true"
+PASS size((width))
+FAIL size((height)) assert_equals: expected "false" but got "true"
+FAIL size((unknown)) assert_equals: expected "false" but got "true"
+FAIL unknown((width)) assert_equals: expected "false" but got "true"
+FAIL size(not (width)) assert_equals: expected "false" but got "true"
+PASS size(not (height))
+FAIL size(not (unknown)) assert_equals: expected "false" but got "true"
+PASS size((width) and (width))
+PASS size((width) and (width) and (width))
+FAIL size((height) and (height)) assert_equals: expected "false" but got "true"
+FAIL size((height) and (width) and (width)) assert_equals: expected "false" but got "true"
+FAIL size((width) and (height) and (width)) assert_equals: expected "false" but got "true"
+FAIL size((width) and (width) and (height)) assert_equals: expected "false" but got "true"
+FAIL size((unknown) and (width) and (width)) assert_equals: expected "false" but got "true"
+FAIL size((width) and (unknown) and (width)) assert_equals: expected "false" but got "true"
+FAIL size((width) and (width) and (unknown)) assert_equals: expected "false" but got "true"
+PASS size((width) or (width))
+PASS size((width) or (width) or (width))
+FAIL size((height) or (height)) assert_equals: expected "false" but got "true"
+PASS size((height) or (width) or (width))
+PASS size((width) or (height) or (width))
+PASS size((width) or (width) or (height))
+PASS size((unknown) or (width) or (width))
+PASS size((width) or (unknown) or (width))
+PASS size((width) or (width) or (unknown))
+PASS size((unknown) or (height) or (width))
+FAIL size(not ((width) and (width))) assert_equals: expected "false" but got "true"
+PASS size(not ((width) and (height)))
+FAIL size((width) and (not ((height) or (width)))) assert_equals: expected "false" but got "true"
+PASS size((height) or (not ((height) and (width))))
+FAIL size((height) or ((height) and (width))) assert_equals: expected "false" but got "true"
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/reattach-container-with-dirty-child-expected.txt (288785 => 288786)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/reattach-container-with-dirty-child-expected.txt 2022-01-29 05:33:17 UTC (rev 288785)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/reattach-container-with-dirty-child-expected.txt 2022-01-29 07:24:13 UTC (rev 288786)
@@ -1,5 +1,5 @@
XXX
-FAIL Initially wider than 200px assert_equals: expected "rgb(255, 0, 0)" but got "rgb(0, 0, 0)"
-FAIL Container query changed and inner.style applied assert_equals: expected "rgb(0, 255, 0)" but got "rgb(0, 0, 0)"
+FAIL Initially wider than 200px assert_equals: expected "rgb(255, 0, 0)" but got "rgb(0, 255, 0)"
+PASS Container query changed and inner.style applied
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/size-container-no-principal-box-expected.txt (288785 => 288786)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/size-container-no-principal-box-expected.txt 2022-01-29 05:33:17 UTC (rev 288785)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/size-container-no-principal-box-expected.txt 2022-01-29 07:24:13 UTC (rev 288786)
@@ -1,5 +1,5 @@
-FAIL Check that container queries is supported assert_equals: expected "rgb(0, 128, 0)" but got "rgb(0, 0, 0)"
-PASS (min-width: 0) does not match a container without a principal box (display:none)
-PASS (min-width: 0) does not match a container without a principal box (display:contents)
+PASS Check that container queries is supported
+FAIL (min-width: 0) does not match a container without a principal box (display:none) assert_equals: expected "rgb(0, 0, 0)" but got "rgb(255, 0, 0)"
+FAIL (min-width: 0) does not match a container without a principal box (display:contents) assert_equals: expected "rgb(0, 0, 0)" but got "rgb(255, 0, 0)"
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/size-feature-evaluation-expected.txt (288785 => 288786)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/size-feature-evaluation-expected.txt 2022-01-29 05:33:17 UTC (rev 288785)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/size-feature-evaluation-expected.txt 2022-01-29 07:24:13 UTC (rev 288786)
@@ -1,59 +1,59 @@
Test
-PASS size(width < 100px) (.horizontal)
-FAIL size(width >= 100px) (.horizontal) assert_equals: expected "true" but got ""
-FAIL size(min-width: 100px) (.horizontal) assert_equals: expected "true" but got ""
-PASS size(min-width: 101px) (.horizontal)
-FAIL size(max-width: 100px) (.horizontal) assert_equals: expected "true" but got ""
-PASS size(max-width: 99px) (.horizontal)
-PASS size(height < 200px) (.horizontal)
-FAIL size(height >= 200px) (.horizontal) assert_equals: expected "true" but got ""
-FAIL size(min-height: 200px) (.horizontal) assert_equals: expected "true" but got ""
-PASS size(min-height: 201px) (.horizontal)
-FAIL size(max-height: 200px) (.horizontal) assert_equals: expected "true" but got ""
-PASS size(max-height: 199px) (.horizontal)
-PASS size(inline-size < 100px) (.horizontal)
-FAIL size(inline-size >= 100px) (.horizontal) assert_equals: expected "true" but got ""
-FAIL size(min-inline-size: 100px) (.horizontal) assert_equals: expected "true" but got ""
-PASS size(min-inline-size: 101px) (.horizontal)
-FAIL size(max-inline-size: 100px) (.horizontal) assert_equals: expected "true" but got ""
-PASS size(max-inline-size: 99px) (.horizontal)
-PASS size(block-size < 200px) (.horizontal)
-FAIL size(block-size >= 200px) (.horizontal) assert_equals: expected "true" but got ""
-FAIL size(min-block-size: 200px) (.horizontal) assert_equals: expected "true" but got ""
-PASS size(min-block-size: 201px) (.horizontal)
-FAIL size(max-block-size: 200px) (.horizontal) assert_equals: expected "true" but got ""
-PASS size(max-block-size: 199px) (.horizontal)
-PASS size(orientation: landscape) (.horizontal)
-FAIL size(orientation: portrait) (.horizontal) assert_equals: expected "true" but got ""
-FAIL size(aspect-ratio: 1/2) (.horizontal) assert_equals: expected "true" but got ""
-PASS size(aspect-ratio: 2/1) (.horizontal)
-PASS size(width < 100px) (.vertical)
-FAIL size(width >= 100px) (.vertical) assert_equals: expected "true" but got ""
-FAIL size(min-width: 100px) (.vertical) assert_equals: expected "true" but got ""
-PASS size(min-width: 101px) (.vertical)
-FAIL size(max-width: 100px) (.vertical) assert_equals: expected "true" but got ""
-PASS size(max-width: 99px) (.vertical)
-PASS size(height < 200px) (.vertical)
-FAIL size(height >= 200px) (.vertical) assert_equals: expected "true" but got ""
-FAIL size(min-height: 200px) (.vertical) assert_equals: expected "true" but got ""
-PASS size(min-height: 201px) (.vertical)
-FAIL size(max-height: 200px) (.vertical) assert_equals: expected "true" but got ""
-PASS size(max-height: 199px) (.vertical)
-PASS size(block-size < 100px) (.vertical)
-FAIL size(block-size >= 100px) (.vertical) assert_equals: expected "true" but got ""
-FAIL size(min-block-size: 100px) (.vertical) assert_equals: expected "true" but got ""
-PASS size(min-block-size: 101px) (.vertical)
-FAIL size(max-block-size: 100px) (.vertical) assert_equals: expected "true" but got ""
-PASS size(max-block-size: 99px) (.vertical)
-PASS size(inline-size < 200px) (.vertical)
-FAIL size(inline-size >= 200px) (.vertical) assert_equals: expected "true" but got ""
-FAIL size(min-inline-size: 200px) (.vertical) assert_equals: expected "true" but got ""
-PASS size(min-inline-size: 201px) (.vertical)
-FAIL size(max-inline-size: 200px) (.vertical) assert_equals: expected "true" but got ""
-PASS size(max-inline-size: 199px) (.vertical)
-PASS size(orientation: landscape) (.vertical)
-FAIL size(orientation: portrait) (.vertical) assert_equals: expected "true" but got ""
-FAIL size(aspect-ratio: 1/2) (.vertical) assert_equals: expected "true" but got ""
-PASS size(aspect-ratio: 2/1) (.vertical)
+FAIL size(width < 100px) (.horizontal) assert_equals: expected "" but got "true"
+PASS size(width >= 100px) (.horizontal)
+PASS size(min-width: 100px) (.horizontal)
+FAIL size(min-width: 101px) (.horizontal) assert_equals: expected "" but got "true"
+PASS size(max-width: 100px) (.horizontal)
+FAIL size(max-width: 99px) (.horizontal) assert_equals: expected "" but got "true"
+FAIL size(height < 200px) (.horizontal) assert_equals: expected "" but got "true"
+PASS size(height >= 200px) (.horizontal)
+PASS size(min-height: 200px) (.horizontal)
+FAIL size(min-height: 201px) (.horizontal) assert_equals: expected "" but got "true"
+PASS size(max-height: 200px) (.horizontal)
+FAIL size(max-height: 199px) (.horizontal) assert_equals: expected "" but got "true"
+FAIL size(inline-size < 100px) (.horizontal) assert_equals: expected "" but got "true"
+PASS size(inline-size >= 100px) (.horizontal)
+PASS size(min-inline-size: 100px) (.horizontal)
+FAIL size(min-inline-size: 101px) (.horizontal) assert_equals: expected "" but got "true"
+PASS size(max-inline-size: 100px) (.horizontal)
+FAIL size(max-inline-size: 99px) (.horizontal) assert_equals: expected "" but got "true"
+FAIL size(block-size < 200px) (.horizontal) assert_equals: expected "" but got "true"
+PASS size(block-size >= 200px) (.horizontal)
+PASS size(min-block-size: 200px) (.horizontal)
+FAIL size(min-block-size: 201px) (.horizontal) assert_equals: expected "" but got "true"
+PASS size(max-block-size: 200px) (.horizontal)
+FAIL size(max-block-size: 199px) (.horizontal) assert_equals: expected "" but got "true"
+FAIL size(orientation: landscape) (.horizontal) assert_equals: expected "" but got "true"
+PASS size(orientation: portrait) (.horizontal)
+PASS size(aspect-ratio: 1/2) (.horizontal)
+FAIL size(aspect-ratio: 2/1) (.horizontal) assert_equals: expected "" but got "true"
+FAIL size(width < 100px) (.vertical) assert_equals: expected "" but got "true"
+PASS size(width >= 100px) (.vertical)
+PASS size(min-width: 100px) (.vertical)
+FAIL size(min-width: 101px) (.vertical) assert_equals: expected "" but got "true"
+PASS size(max-width: 100px) (.vertical)
+FAIL size(max-width: 99px) (.vertical) assert_equals: expected "" but got "true"
+FAIL size(height < 200px) (.vertical) assert_equals: expected "" but got "true"
+PASS size(height >= 200px) (.vertical)
+PASS size(min-height: 200px) (.vertical)
+FAIL size(min-height: 201px) (.vertical) assert_equals: expected "" but got "true"
+PASS size(max-height: 200px) (.vertical)
+FAIL size(max-height: 199px) (.vertical) assert_equals: expected "" but got "true"
+FAIL size(block-size < 100px) (.vertical) assert_equals: expected "" but got "true"
+PASS size(block-size >= 100px) (.vertical)
+PASS size(min-block-size: 100px) (.vertical)
+FAIL size(min-block-size: 101px) (.vertical) assert_equals: expected "" but got "true"
+PASS size(max-block-size: 100px) (.vertical)
+FAIL size(max-block-size: 99px) (.vertical) assert_equals: expected "" but got "true"
+FAIL size(inline-size < 200px) (.vertical) assert_equals: expected "" but got "true"
+PASS size(inline-size >= 200px) (.vertical)
+PASS size(min-inline-size: 200px) (.vertical)
+FAIL size(min-inline-size: 201px) (.vertical) assert_equals: expected "" but got "true"
+PASS size(max-inline-size: 200px) (.vertical)
+FAIL size(max-inline-size: 199px) (.vertical) assert_equals: expected "" but got "true"
+FAIL size(orientation: landscape) (.vertical) assert_equals: expected "" but got "true"
+PASS size(orientation: portrait) (.vertical)
+PASS size(aspect-ratio: 1/2) (.vertical)
+FAIL size(aspect-ratio: 2/1) (.vertical) assert_equals: expected "" but got "true"
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/style-change-in-container-expected.txt (288785 => 288786)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/style-change-in-container-expected.txt 2022-01-29 05:33:17 UTC (rev 288785)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/style-change-in-container-expected.txt 2022-01-29 07:24:13 UTC (rev 288786)
@@ -1,3 +1,3 @@
-FAIL Basic test for container query evaluation stability assert_equals: expected "rgb(0, 128, 0)" but got "rgb(0, 0, 0)"
+PASS Basic test for container query evaluation stability
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/top-layer-dialog-container-expected.txt (288785 => 288786)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/top-layer-dialog-container-expected.txt 2022-01-29 05:33:17 UTC (rev 288785)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/top-layer-dialog-container-expected.txt 2022-01-29 07:24:13 UTC (rev 288786)
@@ -1,4 +1,4 @@
-PASS #dialog initially sized by #containing-block
-FAIL #dialog sized by viewport assert_equals: expected "rgb(0, 128, 0)" but got "rgb(255, 0, 0)"
+FAIL #dialog initially sized by #containing-block assert_equals: expected "rgb(255, 0, 0)" but got "rgb(0, 128, 0)"
+PASS #dialog sized by viewport
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/top-layer-dialog-expected.txt (288785 => 288786)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/top-layer-dialog-expected.txt 2022-01-29 05:33:17 UTC (rev 288785)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/top-layer-dialog-expected.txt 2022-01-29 07:24:13 UTC (rev 288786)
@@ -1,6 +1,6 @@
-PASS #container initially wider than 200px
-FAIL #container changed to 200px assert_equals: expected "rgb(0, 128, 0)" but got "rgb(255, 0, 0)"
-FAIL Modal dialog still has parent as query container while in top layer assert_equals: expected "rgb(0, 128, 0)" but got "rgb(255, 0, 0)"
-FAIL Container changes width while dialog is in top layer assert_equals: expected "rgb(0, 255, 0)" but got "rgb(255, 0, 0)"
+FAIL #container initially wider than 200px assert_equals: expected "rgb(255, 0, 0)" but got "rgb(0, 255, 0)"
+FAIL #container changed to 200px assert_equals: expected "rgb(0, 128, 0)" but got "rgb(0, 255, 0)"
+FAIL Modal dialog still has parent as query container while in top layer assert_equals: expected "rgb(0, 128, 0)" but got "rgb(0, 255, 0)"
+PASS Container changes width while dialog is in top layer
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/top-layer-nested-dialog-expected.txt (288785 => 288786)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/top-layer-nested-dialog-expected.txt 2022-01-29 05:33:17 UTC (rev 288785)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/top-layer-nested-dialog-expected.txt 2022-01-29 07:24:13 UTC (rev 288786)
@@ -1,5 +1,5 @@
-PASS Dialogs initially not matching for container queries
-PASS Dialogs still not matching after showModal
-FAIL @container queries start matching assert_equals: expected "rgb(0, 255, 0)" but got "rgb(255, 0, 0)"
+FAIL Dialogs initially not matching for container queries assert_equals: expected "rgb(255, 0, 0)" but got "rgb(0, 255, 0)"
+FAIL Dialogs still not matching after showModal assert_equals: expected "rgb(255, 0, 0)" but got "rgb(0, 255, 0)"
+PASS @container queries start matching
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/transition-scrollbars-expected.txt (288785 => 288786)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/transition-scrollbars-expected.txt 2022-01-29 05:33:17 UTC (rev 288785)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/transition-scrollbars-expected.txt 2022-01-29 07:24:13 UTC (rev 288786)
@@ -1,4 +1,4 @@
Foo bar foo bar foo Foo bar foo bar foo Foo bar foo bar foo Foo bar foo bar foo Foo bar foo bar foo
-FAIL Scrollbars do not cause a transition of background-color assert_equals: expected "rgb(0, 128, 0)" but got "rgb(0, 0, 0)"
+FAIL Scrollbars do not cause a transition of background-color assert_equals: expected "rgb(0, 0, 255)" but got "rgb(0, 128, 0)"
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/transition-style-change-event-expected.txt (288785 => 288786)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/transition-style-change-event-expected.txt 2022-01-29 05:33:17 UTC (rev 288785)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/transition-style-change-event-expected.txt 2022-01-29 07:24:13 UTC (rev 288786)
@@ -1,4 +1,4 @@
Green
-FAIL Container Queries - Style Change Event for transitions assert_equals: @container queries supported expected "rgb(255, 0, 0)" but got "rgb(0, 128, 0)"
+PASS Container Queries - Style Change Event for transitions
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/unsupported-axis-expected.txt (288785 => 288786)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/unsupported-axis-expected.txt 2022-01-29 05:33:17 UTC (rev 288785)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/unsupported-axis-expected.txt 2022-01-29 07:24:13 UTC (rev 288786)
@@ -1,14 +1,14 @@
Test
-FAIL size(width > 0px) assert_equals: expected "true" but got ""
-PASS size(height > 0px)
-FAIL size((height > 0px) or (width > 0px)) assert_equals: expected "true" but got ""
-FAIL size((width > 0px) or (height > 0px)) assert_equals: expected "true" but got ""
-FAIL size((orientation: landscape) or (width > 0px)) assert_equals: expected "true" but got ""
-FAIL size((width > 0px) or (orientation: landscape)) assert_equals: expected "true" but got ""
-PASS size((height > 0px) or (orientation: landscape))
-PASS size((height > 0px) or (orientation: landscape)), with contain:size
-FAIL size(inline-size > 0px) assert_equals: expected "true" but got ""
-PASS size(block-size > 0px)
-PASS size(block-size > 0px), with writing-mode:vertical-rl
+PASS size(width > 0px)
+FAIL size(height > 0px) assert_equals: expected "" but got "true"
+PASS size((height > 0px) or (width > 0px))
+PASS size((width > 0px) or (height > 0px))
+PASS size((orientation: landscape) or (width > 0px))
+PASS size((width > 0px) or (orientation: landscape))
+FAIL size((height > 0px) or (orientation: landscape)) assert_equals: expected "" but got "true"
+FAIL size((height > 0px) or (orientation: landscape)), with contain:size assert_equals: expected "" but got "true"
+PASS size(inline-size > 0px)
+FAIL size(block-size > 0px) assert_equals: expected "" but got "true"
+FAIL size(block-size > 0px), with writing-mode:vertical-rl assert_equals: expected "" but got "true"
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/viewport-units-dynamic-expected.txt (288785 => 288786)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/viewport-units-dynamic-expected.txt 2022-01-29 05:33:17 UTC (rev 288785)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/viewport-units-dynamic-expected.txt 2022-01-29 07:24:13 UTC (rev 288786)
@@ -1,4 +1,4 @@
-FAIL CSS Container Queries Test: @container-dependent elements respond to viewport unit changes assert_equals: vw before resize expected "rgb(255, 0, 0)" but got "rgb(0, 0, 0)"
+FAIL CSS Container Queries Test: @container-dependent elements respond to viewport unit changes assert_equals: vw after width resize expected "rgb(0, 128, 0)" but got "rgb(255, 0, 0)"
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/viewport-units-expected.txt (288785 => 288786)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/viewport-units-expected.txt 2022-01-29 05:33:17 UTC (rev 288785)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/viewport-units-expected.txt 2022-01-29 07:24:13 UTC (rev 288786)
@@ -1,6 +1,6 @@
Green
Green
-FAIL Match width with vw assert_equals: expected "rgb(0, 128, 0)" but got "rgb(0, 0, 0)"
-FAIL Match width with vh assert_equals: expected "rgb(0, 128, 0)" but got "rgb(0, 0, 0)"
+FAIL Match width with vw assert_equals: expected "rgb(0, 128, 0)" but got "rgb(255, 0, 0)"
+FAIL Match width with vh assert_equals: expected "rgb(0, 128, 0)" but got "rgb(255, 0, 0)"
Modified: trunk/Source/WebCore/ChangeLog (288785 => 288786)
--- trunk/Source/WebCore/ChangeLog 2022-01-29 05:33:17 UTC (rev 288785)
+++ trunk/Source/WebCore/ChangeLog 2022-01-29 07:24:13 UTC (rev 288786)
@@ -1,3 +1,20 @@
+2022-01-28 Antti Koivisto <[email protected]>
+
+ [CSS container Queries] Include container queries in RuleSets
+ https://bugs.webkit.org/show_bug.cgi?id=235763
+
+ Reviewed by Simon Fraser.
+
+ Build the data structures in RuleSets. They are not yet used, all queries behave as if they match.
+
+ * style/RuleSet.cpp:
+ (WebCore::Style::RuleSet::addRule):
+ * style/RuleSet.h:
+ * style/RuleSetBuilder.cpp:
+ (WebCore::Style::RuleSetBuilder::addChildRules):
+ (WebCore::Style::RuleSetBuilder::addStyleRule):
+ * style/RuleSetBuilder.h:
+
2022-01-28 Diego Pino Garcia <[email protected]>
[WPE] Unreviewed, fix non-unified build after r288759
Modified: trunk/Source/WebCore/style/RuleSet.cpp (288785 => 288786)
--- trunk/Source/WebCore/style/RuleSet.cpp 2022-01-29 05:33:17 UTC (rev 288785)
+++ trunk/Source/WebCore/style/RuleSet.cpp 2022-01-29 07:24:13 UTC (rev 288786)
@@ -88,10 +88,10 @@
void RuleSet::addRule(const StyleRule& rule, unsigned selectorIndex, unsigned selectorListIndex)
{
RuleData ruleData(rule, selectorIndex, selectorListIndex, m_ruleCount);
- addRule(WTFMove(ruleData), 0);
+ addRule(WTFMove(ruleData), 0, 0);
}
-void RuleSet::addRule(RuleData&& ruleData, CascadeLayerIdentifier cascadeLayerIdentifier)
+void RuleSet::addRule(RuleData&& ruleData, CascadeLayerIdentifier cascadeLayerIdentifier, ContainerQueryIdentifier containerQueryIdentifier)
{
ASSERT(ruleData.position() == m_ruleCount);
@@ -104,6 +104,13 @@
m_cascadeLayerIdentifierForRulePosition.last() = cascadeLayerIdentifier;
}
+ if (containerQueryIdentifier) {
+ auto oldSize = m_containerQueryIdentifierForRulePosition.size();
+ m_containerQueryIdentifierForRulePosition.grow(m_ruleCount);
+ std::fill(m_containerQueryIdentifierForRulePosition.begin() + oldSize, m_containerQueryIdentifierForRulePosition.end(), 0);
+ m_containerQueryIdentifierForRulePosition.last() = containerQueryIdentifier;
+ }
+
m_features.collectFeatures(ruleData);
unsigned classBucketSize = 0;
@@ -408,6 +415,8 @@
m_cascadeLayers.shrinkToFit();
m_cascadeLayerIdentifierForRulePosition.shrinkToFit();
+ m_containerQueries.shrinkToFit();
+ m_containerQueryIdentifierForRulePosition.shrinkToFit();
m_resolverMutatingRulesInLayers.shrinkToFit();
}
Modified: trunk/Source/WebCore/style/RuleSet.h (288785 => 288786)
--- trunk/Source/WebCore/style/RuleSet.h 2022-01-29 05:33:17 UTC (rev 288785)
+++ trunk/Source/WebCore/style/RuleSet.h 2022-01-29 07:24:13 UTC (rev 288786)
@@ -115,8 +115,9 @@
RuleSet();
using CascadeLayerIdentifier = unsigned;
+ using ContainerQueryIdentifier = unsigned;
- void addRule(RuleData&&, CascadeLayerIdentifier);
+ void addRule(RuleData&&, CascadeLayerIdentifier, ContainerQueryIdentifier);
struct ResolverMutatingRule {
Ref<StyleRuleBase> rule;
@@ -141,6 +142,11 @@
const CascadeLayer& cascadeLayerForIdentifier(CascadeLayerIdentifier identifier) const { return m_cascadeLayers[identifier - 1]; }
CascadeLayerPriority cascadeLayerPriorityForIdentifier(CascadeLayerIdentifier) const;
+ struct ContainerQueryAndParent {
+ ContainerQuery query;
+ ContainerQueryIdentifier parent;
+ };
+
struct DynamicMediaQueryRules {
Vector<Ref<const MediaQuerySet>> mediaQuerySets;
Vector<size_t> affectedRulePositions;
@@ -182,6 +188,9 @@
Vector<ResolverMutatingRule> m_resolverMutatingRulesInLayers;
+ Vector<ContainerQueryAndParent> m_containerQueries;
+ Vector<ContainerQueryIdentifier> m_containerQueryIdentifierForRulePosition;
+
bool m_hasHostPseudoClassRulesMatchingInShadowTree { false };
bool m_hasViewportDependentMediaQueries { false };
};
Modified: trunk/Source/WebCore/style/RuleSetBuilder.cpp (288785 => 288786)
--- trunk/Source/WebCore/style/RuleSetBuilder.cpp 2022-01-29 05:33:17 UTC (rev 288785)
+++ trunk/Source/WebCore/style/RuleSetBuilder.cpp 2022-01-29 07:24:13 UTC (rev 288786)
@@ -109,6 +109,18 @@
m_mediaQueryCollector.pop(&mediaRule.mediaQueries());
continue;
}
+ if (is<StyleRuleContainer>(*rule)) {
+ auto& containerRule = downcast<StyleRuleContainer>(*rule);
+ auto previousContainerQueryIdentifier = m_currentContainerQueryIdentifier;
+ if (m_ruleSet) {
+ m_ruleSet->m_containerQueries.append({ containerRule.query(), previousContainerQueryIdentifier });
+ m_currentContainerQueryIdentifier = m_ruleSet->m_containerQueries.size();
+ }
+ addChildRules(containerRule.childRules());
+ if (m_ruleSet)
+ m_currentContainerQueryIdentifier = previousContainerQueryIdentifier;
+ continue;
+ }
if (is<StyleRuleLayer>(*rule)) {
disallowDynamicMediaQueryEvaluationIfNeeded();
@@ -175,7 +187,7 @@
RuleData ruleData(rule, selectorIndex, selectorListIndex, m_ruleSet->ruleCount());
m_mediaQueryCollector.addRuleIfNeeded(ruleData);
- m_ruleSet->addRule(WTFMove(ruleData), m_currentCascadeLayerIdentifier);
+ m_ruleSet->addRule(WTFMove(ruleData), m_currentCascadeLayerIdentifier, m_currentContainerQueryIdentifier);
++selectorListIndex;
}
Modified: trunk/Source/WebCore/style/RuleSetBuilder.h (288785 => 288786)
--- trunk/Source/WebCore/style/RuleSetBuilder.h 2022-01-29 05:33:17 UTC (rev 288785)
+++ trunk/Source/WebCore/style/RuleSetBuilder.h 2022-01-29 07:24:13 UTC (rev 288786)
@@ -79,6 +79,8 @@
HashMap<CascadeLayerName, RuleSet::CascadeLayerIdentifier> m_cascadeLayerIdentifierMap;
RuleSet::CascadeLayerIdentifier m_currentCascadeLayerIdentifier { 0 };
+ RuleSet::ContainerQueryIdentifier m_currentContainerQueryIdentifier { 0 };
+
Vector<RuleSet::ResolverMutatingRule> m_collectedResolverMutatingRules;
bool requiresStaticMediaQueryEvaluation { false };
};