From b226f8942d95c5fa8b29ca249e3cd39a7a4d6e7f Mon Sep 17 00:00:00 2001 From: FranklinDM Date: Sat, 2 Apr 2022 20:23:26 +0800 Subject: Issue #1838 - Part 7: Update tests --- .../css-grid/grid-percent-grid-gap-001-ref.html | 6 +- .../grid-repeat-auto-fill-fit-002-ref.html | 7 +- .../flexbox/flexbox-column-row-gap-001-ref.html | 97 ++++++++++++++++++++++ .../flexbox/flexbox-column-row-gap-001.html | 65 +++++++++++++++ .../flexbox/flexbox-column-row-gap-002-ref.html | 67 +++++++++++++++ .../flexbox/flexbox-column-row-gap-002.html | 62 ++++++++++++++ .../flexbox/flexbox-column-row-gap-003-ref.html | 63 ++++++++++++++ .../flexbox/flexbox-column-row-gap-003.html | 61 ++++++++++++++ .../flexbox/flexbox-column-row-gap-004-ref.html | 68 +++++++++++++++ .../flexbox/flexbox-column-row-gap-004.html | 64 ++++++++++++++ .../flexbox/flexbox-gap-position-absolute-ref.html | 20 +++++ .../flexbox/flexbox-gap-position-absolute.html | 26 ++++++ .../w3c-css/submitted/flexbox/reftest.list | 7 ++ 13 files changed, 608 insertions(+), 5 deletions(-) create mode 100644 layout/reftests/w3c-css/submitted/flexbox/flexbox-column-row-gap-001-ref.html create mode 100644 layout/reftests/w3c-css/submitted/flexbox/flexbox-column-row-gap-001.html create mode 100644 layout/reftests/w3c-css/submitted/flexbox/flexbox-column-row-gap-002-ref.html create mode 100644 layout/reftests/w3c-css/submitted/flexbox/flexbox-column-row-gap-002.html create mode 100644 layout/reftests/w3c-css/submitted/flexbox/flexbox-column-row-gap-003-ref.html create mode 100644 layout/reftests/w3c-css/submitted/flexbox/flexbox-column-row-gap-003.html create mode 100644 layout/reftests/w3c-css/submitted/flexbox/flexbox-column-row-gap-004-ref.html create mode 100644 layout/reftests/w3c-css/submitted/flexbox/flexbox-column-row-gap-004.html create mode 100644 layout/reftests/w3c-css/submitted/flexbox/flexbox-gap-position-absolute-ref.html create mode 100644 layout/reftests/w3c-css/submitted/flexbox/flexbox-gap-position-absolute.html (limited to 'layout/reftests') diff --git a/layout/reftests/css-grid/grid-percent-grid-gap-001-ref.html b/layout/reftests/css-grid/grid-percent-grid-gap-001-ref.html index 7ad85e1e58..1970d10e37 100644 --- a/layout/reftests/css-grid/grid-percent-grid-gap-001-ref.html +++ b/layout/reftests/css-grid/grid-percent-grid-gap-001-ref.html @@ -65,7 +65,7 @@ br { clear: both; }
-
+
@@ -74,7 +74,7 @@ br { clear: both; }
-
+
@@ -142,7 +142,7 @@ br { clear: both; }
-
+
diff --git a/layout/reftests/css-grid/grid-repeat-auto-fill-fit-002-ref.html b/layout/reftests/css-grid/grid-repeat-auto-fill-fit-002-ref.html index 682e0ca38e..8de84391eb 100644 --- a/layout/reftests/css-grid/grid-repeat-auto-fill-fit-002-ref.html +++ b/layout/reftests/css-grid/grid-repeat-auto-fill-fit-002-ref.html @@ -83,15 +83,18 @@ fill,fit { .zero-progress { grid-row-gap: calc(10px - 1%); - grid-template-rows: [a] 10px repeat(3, [b] 0 [c]) [d]; + grid-template-rows: [a] 10px repeat(3, [b] calc(4px / 10) [c]) [d]; + height:40px; } .w50.zero-progress { grid-row-gap: calc(10px - 1%); grid-template-rows: [a] 10px repeat(3, [b] 0 [c]) [d]; + height:50px; } .mw50.zero-progress { grid-row-gap: calc(10px - 1%); - grid-template-rows: [a] 10px repeat(4, [b] 0 [c]) [d]; + grid-template-rows: [a] 10px repeat(4, [b] calc(5px / 10) [c]) [d]; + height:50px; } diff --git a/layout/reftests/w3c-css/submitted/flexbox/flexbox-column-row-gap-001-ref.html b/layout/reftests/w3c-css/submitted/flexbox/flexbox-column-row-gap-001-ref.html new file mode 100644 index 0000000000..0606afe539 --- /dev/null +++ b/layout/reftests/w3c-css/submitted/flexbox/flexbox-column-row-gap-001-ref.html @@ -0,0 +1,97 @@ + + + + + + Reference: Testing row and column gaps in horizontal and vertical multi-line flex containers with the space-around property and auto margins + + + + + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + diff --git a/layout/reftests/w3c-css/submitted/flexbox/flexbox-column-row-gap-001.html b/layout/reftests/w3c-css/submitted/flexbox/flexbox-column-row-gap-001.html new file mode 100644 index 0000000000..25b28e8094 --- /dev/null +++ b/layout/reftests/w3c-css/submitted/flexbox/flexbox-column-row-gap-001.html @@ -0,0 +1,65 @@ + + + + + + CSS Test: Testing row and column gaps in horizontal and vertical multi-line flex containers with the space-around property and auto margins + + + + + + + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + diff --git a/layout/reftests/w3c-css/submitted/flexbox/flexbox-column-row-gap-002-ref.html b/layout/reftests/w3c-css/submitted/flexbox/flexbox-column-row-gap-002-ref.html new file mode 100644 index 0000000000..e23ddfe261 --- /dev/null +++ b/layout/reftests/w3c-css/submitted/flexbox/flexbox-column-row-gap-002-ref.html @@ -0,0 +1,67 @@ + + + + + + Reference: Testing row and column gaps in vertical writing mode multi-line flex containers + + + + + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + diff --git a/layout/reftests/w3c-css/submitted/flexbox/flexbox-column-row-gap-002.html b/layout/reftests/w3c-css/submitted/flexbox/flexbox-column-row-gap-002.html new file mode 100644 index 0000000000..fcd19cf8d4 --- /dev/null +++ b/layout/reftests/w3c-css/submitted/flexbox/flexbox-column-row-gap-002.html @@ -0,0 +1,62 @@ + + + + + + CSS Test: Testing row and column gaps in vertical writing mode multi-line flex containers + + + + + + + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + diff --git a/layout/reftests/w3c-css/submitted/flexbox/flexbox-column-row-gap-003-ref.html b/layout/reftests/w3c-css/submitted/flexbox/flexbox-column-row-gap-003-ref.html new file mode 100644 index 0000000000..6e7f220b44 --- /dev/null +++ b/layout/reftests/w3c-css/submitted/flexbox/flexbox-column-row-gap-003-ref.html @@ -0,0 +1,63 @@ + + + + + Reference: Testing cross size computation with row and column gaps in horizontal multi-line flex containers + + + + + + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + diff --git a/layout/reftests/w3c-css/submitted/flexbox/flexbox-column-row-gap-003.html b/layout/reftests/w3c-css/submitted/flexbox/flexbox-column-row-gap-003.html new file mode 100644 index 0000000000..2dcd027173 --- /dev/null +++ b/layout/reftests/w3c-css/submitted/flexbox/flexbox-column-row-gap-003.html @@ -0,0 +1,61 @@ + + + + + CSS Test: Testing cross size computation with row and column gaps in horizontal multi-line flex containers + + + + + + + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + diff --git a/layout/reftests/w3c-css/submitted/flexbox/flexbox-column-row-gap-004-ref.html b/layout/reftests/w3c-css/submitted/flexbox/flexbox-column-row-gap-004-ref.html new file mode 100644 index 0000000000..0b40fb2d62 --- /dev/null +++ b/layout/reftests/w3c-css/submitted/flexbox/flexbox-column-row-gap-004-ref.html @@ -0,0 +1,68 @@ + + + + + Reference: Testing percentage gap resolution in flex containers + + + + + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + diff --git a/layout/reftests/w3c-css/submitted/flexbox/flexbox-column-row-gap-004.html b/layout/reftests/w3c-css/submitted/flexbox/flexbox-column-row-gap-004.html new file mode 100644 index 0000000000..0d86b3818f --- /dev/null +++ b/layout/reftests/w3c-css/submitted/flexbox/flexbox-column-row-gap-004.html @@ -0,0 +1,64 @@ + + + + + CSS Test: Testing percentage gap resolution in flex containers + + + + + + + + + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + diff --git a/layout/reftests/w3c-css/submitted/flexbox/flexbox-gap-position-absolute-ref.html b/layout/reftests/w3c-css/submitted/flexbox/flexbox-gap-position-absolute-ref.html new file mode 100644 index 0000000000..7cea1fb1dd --- /dev/null +++ b/layout/reftests/w3c-css/submitted/flexbox/flexbox-gap-position-absolute-ref.html @@ -0,0 +1,20 @@ + + + + CSS Flexible Box Layout Test Reference: Test flexbox intrinsic inline-size, gap, and absolute-positioned children + + + + + +
+ B + + C +
+ diff --git a/layout/reftests/w3c-css/submitted/flexbox/flexbox-gap-position-absolute.html b/layout/reftests/w3c-css/submitted/flexbox/flexbox-gap-position-absolute.html new file mode 100644 index 0000000000..850f1a42d4 --- /dev/null +++ b/layout/reftests/w3c-css/submitted/flexbox/flexbox-gap-position-absolute.html @@ -0,0 +1,26 @@ + + + + CSS Flexible Box Layout Test: Test flexbox intrinsic inline-size, gap, and absolute-positioned children + + + + + + + + + +
+ + + B + C +
+ diff --git a/layout/reftests/w3c-css/submitted/flexbox/reftest.list b/layout/reftests/w3c-css/submitted/flexbox/reftest.list index 281ef4758f..075aa660e1 100644 --- a/layout/reftests/w3c-css/submitted/flexbox/reftest.list +++ b/layout/reftests/w3c-css/submitted/flexbox/reftest.list @@ -91,6 +91,13 @@ == flexbox-collapsed-item-horiz-002.html flexbox-collapsed-item-horiz-002-ref.html == flexbox-collapsed-item-horiz-003.html flexbox-collapsed-item-horiz-003-ref.html +# Tests for "row gap" and "column gap" +== flexbox-column-row-gap-001.html flexbox-column-row-gap-001-ref.html +== flexbox-column-row-gap-002.html flexbox-column-row-gap-002-ref.html +== flexbox-column-row-gap-003.html flexbox-column-row-gap-003-ref.html +== flexbox-column-row-gap-004.html flexbox-column-row-gap-004-ref.html +== flexbox-gap-position-absolute.html flexbox-gap-position-absolute-ref.html + # Tests for flex-flow shorthand property == flexbox-flex-flow-001.html flexbox-flex-flow-001-ref.html == flexbox-flex-flow-002.html flexbox-flex-flow-002-ref.html -- cgit v1.2.3