From 43a97878ce14b72f0981164f87f2e35e14151312 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 11:22:09 +0200 Subject: Adding upstream version 110.0.1. Signed-off-by: Daniel Baumann --- .../tests/css/css-layout-api/edges/all-ref.html | 161 +++++++++++++++++ .../tests/css/css-layout-api/edges/all.https.html | 194 +++++++++++++++++++++ .../css-layout-api/edges/border-htb-rtl.https.html | 39 +++++ .../css/css-layout-api/edges/border-htb.https.html | 38 ++++ .../css-layout-api/edges/border-vlr-rtl.https.html | 39 +++++ .../css/css-layout-api/edges/border-vlr.https.html | 38 ++++ .../css-layout-api/edges/border-vrl-rtl.https.html | 39 +++++ .../css/css-layout-api/edges/border-vrl.https.html | 38 ++++ .../edges/padding-htb-rtl.https.html | 37 ++++ .../css-layout-api/edges/padding-htb.https.html | 36 ++++ .../edges/padding-vlr-rtl.https.html | 37 ++++ .../css-layout-api/edges/padding-vlr.https.html | 36 ++++ .../edges/padding-vrl-rtl.https.html | 37 ++++ .../css-layout-api/edges/padding-vrl.https.html | 36 ++++ .../css/css-layout-api/edges/scrollbar-ref.html | 159 +++++++++++++++++ .../css/css-layout-api/edges/scrollbar.https.html | 192 ++++++++++++++++++++ .../css/css-layout-api/edges/support/edges.js | 38 ++++ 17 files changed, 1194 insertions(+) create mode 100644 testing/web-platform/tests/css/css-layout-api/edges/all-ref.html create mode 100644 testing/web-platform/tests/css/css-layout-api/edges/all.https.html create mode 100644 testing/web-platform/tests/css/css-layout-api/edges/border-htb-rtl.https.html create mode 100644 testing/web-platform/tests/css/css-layout-api/edges/border-htb.https.html create mode 100644 testing/web-platform/tests/css/css-layout-api/edges/border-vlr-rtl.https.html create mode 100644 testing/web-platform/tests/css/css-layout-api/edges/border-vlr.https.html create mode 100644 testing/web-platform/tests/css/css-layout-api/edges/border-vrl-rtl.https.html create mode 100644 testing/web-platform/tests/css/css-layout-api/edges/border-vrl.https.html create mode 100644 testing/web-platform/tests/css/css-layout-api/edges/padding-htb-rtl.https.html create mode 100644 testing/web-platform/tests/css/css-layout-api/edges/padding-htb.https.html create mode 100644 testing/web-platform/tests/css/css-layout-api/edges/padding-vlr-rtl.https.html create mode 100644 testing/web-platform/tests/css/css-layout-api/edges/padding-vlr.https.html create mode 100644 testing/web-platform/tests/css/css-layout-api/edges/padding-vrl-rtl.https.html create mode 100644 testing/web-platform/tests/css/css-layout-api/edges/padding-vrl.https.html create mode 100644 testing/web-platform/tests/css/css-layout-api/edges/scrollbar-ref.html create mode 100644 testing/web-platform/tests/css/css-layout-api/edges/scrollbar.https.html create mode 100644 testing/web-platform/tests/css/css-layout-api/edges/support/edges.js (limited to 'testing/web-platform/tests/css/css-layout-api/edges') diff --git a/testing/web-platform/tests/css/css-layout-api/edges/all-ref.html b/testing/web-platform/tests/css/css-layout-api/edges/all-ref.html new file mode 100644 index 0000000000..2a04f96e73 --- /dev/null +++ b/testing/web-platform/tests/css/css-layout-api/edges/all-ref.html @@ -0,0 +1,161 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
LTRRTL
YXYX
HTB +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
VRL +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
VLR +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/testing/web-platform/tests/css/css-layout-api/edges/all.https.html b/testing/web-platform/tests/css/css-layout-api/edges/all.https.html new file mode 100644 index 0000000000..e38d3666b8 --- /dev/null +++ b/testing/web-platform/tests/css/css-layout-api/edges/all.https.html @@ -0,0 +1,194 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
LTRRTL
YXYX
HTB +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
VRL +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
VLR +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + + + diff --git a/testing/web-platform/tests/css/css-layout-api/edges/border-htb-rtl.https.html b/testing/web-platform/tests/css/css-layout-api/edges/border-htb-rtl.https.html new file mode 100644 index 0000000000..cb200a7675 --- /dev/null +++ b/testing/web-platform/tests/css/css-layout-api/edges/border-htb-rtl.https.html @@ -0,0 +1,39 @@ + + + + + + + + + +
+ diff --git a/testing/web-platform/tests/css/css-layout-api/edges/border-htb.https.html b/testing/web-platform/tests/css/css-layout-api/edges/border-htb.https.html new file mode 100644 index 0000000000..67a3858830 --- /dev/null +++ b/testing/web-platform/tests/css/css-layout-api/edges/border-htb.https.html @@ -0,0 +1,38 @@ + + + + + + + + + +
+ diff --git a/testing/web-platform/tests/css/css-layout-api/edges/border-vlr-rtl.https.html b/testing/web-platform/tests/css/css-layout-api/edges/border-vlr-rtl.https.html new file mode 100644 index 0000000000..8da84e9acc --- /dev/null +++ b/testing/web-platform/tests/css/css-layout-api/edges/border-vlr-rtl.https.html @@ -0,0 +1,39 @@ + + + + + + + + + +
+ diff --git a/testing/web-platform/tests/css/css-layout-api/edges/border-vlr.https.html b/testing/web-platform/tests/css/css-layout-api/edges/border-vlr.https.html new file mode 100644 index 0000000000..b514b2f22f --- /dev/null +++ b/testing/web-platform/tests/css/css-layout-api/edges/border-vlr.https.html @@ -0,0 +1,38 @@ + + + + + + + + + +
+ diff --git a/testing/web-platform/tests/css/css-layout-api/edges/border-vrl-rtl.https.html b/testing/web-platform/tests/css/css-layout-api/edges/border-vrl-rtl.https.html new file mode 100644 index 0000000000..38c8c3f046 --- /dev/null +++ b/testing/web-platform/tests/css/css-layout-api/edges/border-vrl-rtl.https.html @@ -0,0 +1,39 @@ + + + + + + + + + +
+ diff --git a/testing/web-platform/tests/css/css-layout-api/edges/border-vrl.https.html b/testing/web-platform/tests/css/css-layout-api/edges/border-vrl.https.html new file mode 100644 index 0000000000..94c5353eb9 --- /dev/null +++ b/testing/web-platform/tests/css/css-layout-api/edges/border-vrl.https.html @@ -0,0 +1,38 @@ + + + + + + + + + +
+ diff --git a/testing/web-platform/tests/css/css-layout-api/edges/padding-htb-rtl.https.html b/testing/web-platform/tests/css/css-layout-api/edges/padding-htb-rtl.https.html new file mode 100644 index 0000000000..dfbf2bc099 --- /dev/null +++ b/testing/web-platform/tests/css/css-layout-api/edges/padding-htb-rtl.https.html @@ -0,0 +1,37 @@ + + + + + + + + + +
+ diff --git a/testing/web-platform/tests/css/css-layout-api/edges/padding-htb.https.html b/testing/web-platform/tests/css/css-layout-api/edges/padding-htb.https.html new file mode 100644 index 0000000000..ebad66594c --- /dev/null +++ b/testing/web-platform/tests/css/css-layout-api/edges/padding-htb.https.html @@ -0,0 +1,36 @@ + + + + + + + + + +
+ diff --git a/testing/web-platform/tests/css/css-layout-api/edges/padding-vlr-rtl.https.html b/testing/web-platform/tests/css/css-layout-api/edges/padding-vlr-rtl.https.html new file mode 100644 index 0000000000..86b0ca5425 --- /dev/null +++ b/testing/web-platform/tests/css/css-layout-api/edges/padding-vlr-rtl.https.html @@ -0,0 +1,37 @@ + + + + + + + + + +
+ diff --git a/testing/web-platform/tests/css/css-layout-api/edges/padding-vlr.https.html b/testing/web-platform/tests/css/css-layout-api/edges/padding-vlr.https.html new file mode 100644 index 0000000000..563884ade3 --- /dev/null +++ b/testing/web-platform/tests/css/css-layout-api/edges/padding-vlr.https.html @@ -0,0 +1,36 @@ + + + + + + + + + +
+ diff --git a/testing/web-platform/tests/css/css-layout-api/edges/padding-vrl-rtl.https.html b/testing/web-platform/tests/css/css-layout-api/edges/padding-vrl-rtl.https.html new file mode 100644 index 0000000000..bda0a21144 --- /dev/null +++ b/testing/web-platform/tests/css/css-layout-api/edges/padding-vrl-rtl.https.html @@ -0,0 +1,37 @@ + + + + + + + + + +
+ diff --git a/testing/web-platform/tests/css/css-layout-api/edges/padding-vrl.https.html b/testing/web-platform/tests/css/css-layout-api/edges/padding-vrl.https.html new file mode 100644 index 0000000000..a65ecad311 --- /dev/null +++ b/testing/web-platform/tests/css/css-layout-api/edges/padding-vrl.https.html @@ -0,0 +1,36 @@ + + + + + + + + + +
+ diff --git a/testing/web-platform/tests/css/css-layout-api/edges/scrollbar-ref.html b/testing/web-platform/tests/css/css-layout-api/edges/scrollbar-ref.html new file mode 100644 index 0000000000..cc41754c08 --- /dev/null +++ b/testing/web-platform/tests/css/css-layout-api/edges/scrollbar-ref.html @@ -0,0 +1,159 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
LTRRTL
YXYX
HTB +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
VRL +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
VLR +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/testing/web-platform/tests/css/css-layout-api/edges/scrollbar.https.html b/testing/web-platform/tests/css/css-layout-api/edges/scrollbar.https.html new file mode 100644 index 0000000000..76bbd4dccd --- /dev/null +++ b/testing/web-platform/tests/css/css-layout-api/edges/scrollbar.https.html @@ -0,0 +1,192 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
LTRRTL
YXYX
HTB +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
VRL +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
VLR +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + + + diff --git a/testing/web-platform/tests/css/css-layout-api/edges/support/edges.js b/testing/web-platform/tests/css/css-layout-api/edges/support/edges.js new file mode 100644 index 0000000000..b70a42f398 --- /dev/null +++ b/testing/web-platform/tests/css/css-layout-api/edges/support/edges.js @@ -0,0 +1,38 @@ +import {areArraysEqual} from '/common/arrays.js'; + +function parseNumber(value) { + const num = parseInt(value.toString()); + if (isNaN(num)) return 0; + return num; +} + +registerLayout('test', class { + static get inputProperties() { + return [ + '--edges-inline-start-expected', + '--edges-inline-end-expected', + '--edges-block-start-expected', + '--edges-block-end-expected', + ]; + } + + async intrinsicSizes() {} + async layout(children, edges, constraints, styleMap) { + const actual = this.constructor.inputProperties.map( + prop => parseNumber(styleMap.get(prop)) + ); + + const expected = [ + edges.inlineStart, + edges.inlineEnd, + edges.blockStart, + edges.blockEnd, + ]; + + if (!areArraysEqual(expected, actual)) { + return {autoBlockSize: 0, childFragments: []}; + } + + return {autoBlockSize: 100, childFragment: []}; + } +}); -- cgit v1.2.3