From 26a029d407be480d791972afb5975cf62c9360a6 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 02:47:55 +0200 Subject: Adding upstream version 124.0.1. Signed-off-by: Daniel Baumann --- .../position-fragment/htb-ltr.https.html | 54 ++++++++++++++++++++++ .../position-fragment/htb-rtl.https.html | 54 ++++++++++++++++++++++ .../css/css-layout-api/position-fragment/ref.html | 33 +++++++++++++ .../support/layout-position-child-worklet.js | 20 ++++++++ .../position-fragment/vlr-ltr.https.html | 54 ++++++++++++++++++++++ .../position-fragment/vlr-rtl.https.html | 54 ++++++++++++++++++++++ .../position-fragment/vrl-ltr.https.html | 54 ++++++++++++++++++++++ .../position-fragment/vrl-rtl.https.html | 54 ++++++++++++++++++++++ 8 files changed, 377 insertions(+) create mode 100644 testing/web-platform/tests/css/css-layout-api/position-fragment/htb-ltr.https.html create mode 100644 testing/web-platform/tests/css/css-layout-api/position-fragment/htb-rtl.https.html create mode 100644 testing/web-platform/tests/css/css-layout-api/position-fragment/ref.html create mode 100644 testing/web-platform/tests/css/css-layout-api/position-fragment/support/layout-position-child-worklet.js create mode 100644 testing/web-platform/tests/css/css-layout-api/position-fragment/vlr-ltr.https.html create mode 100644 testing/web-platform/tests/css/css-layout-api/position-fragment/vlr-rtl.https.html create mode 100644 testing/web-platform/tests/css/css-layout-api/position-fragment/vrl-ltr.https.html create mode 100644 testing/web-platform/tests/css/css-layout-api/position-fragment/vrl-rtl.https.html (limited to 'testing/web-platform/tests/css/css-layout-api/position-fragment') diff --git a/testing/web-platform/tests/css/css-layout-api/position-fragment/htb-ltr.https.html b/testing/web-platform/tests/css/css-layout-api/position-fragment/htb-ltr.https.html new file mode 100644 index 0000000000..f60109ca57 --- /dev/null +++ b/testing/web-platform/tests/css/css-layout-api/position-fragment/htb-ltr.https.html @@ -0,0 +1,54 @@ + + + + + + + + + +
+
+
+
+ + diff --git a/testing/web-platform/tests/css/css-layout-api/position-fragment/htb-rtl.https.html b/testing/web-platform/tests/css/css-layout-api/position-fragment/htb-rtl.https.html new file mode 100644 index 0000000000..980a3cdc25 --- /dev/null +++ b/testing/web-platform/tests/css/css-layout-api/position-fragment/htb-rtl.https.html @@ -0,0 +1,54 @@ + + + + + + + + + +
+
+
+
+ + diff --git a/testing/web-platform/tests/css/css-layout-api/position-fragment/ref.html b/testing/web-platform/tests/css/css-layout-api/position-fragment/ref.html new file mode 100644 index 0000000000..4ce0a6e39d --- /dev/null +++ b/testing/web-platform/tests/css/css-layout-api/position-fragment/ref.html @@ -0,0 +1,33 @@ + + +
+
+
+
diff --git a/testing/web-platform/tests/css/css-layout-api/position-fragment/support/layout-position-child-worklet.js b/testing/web-platform/tests/css/css-layout-api/position-fragment/support/layout-position-child-worklet.js new file mode 100644 index 0000000000..7d5c494952 --- /dev/null +++ b/testing/web-platform/tests/css/css-layout-api/position-fragment/support/layout-position-child-worklet.js @@ -0,0 +1,20 @@ +registerLayout('test', class { + static get childInputProperties() { + return [ + '--inline-offset', + '--block-offset', + ]; + } + + async intrinsicSizes() {} + async layout(children, edges, constraints, styleMap) { + const childFragments = await Promise.all(children.map((child) => child.layoutNextFragment({}))); + + for (let i = 0; i < children.length; i++) { + childFragments[i].inlineOffset = parseInt(children[i].styleMap.get('--inline-offset').toString()); + childFragments[i].blockOffset = parseInt(children[i].styleMap.get('--block-offset').toString()); + } + + return {autoBlockSize: 0, childFragments}; + } +}); diff --git a/testing/web-platform/tests/css/css-layout-api/position-fragment/vlr-ltr.https.html b/testing/web-platform/tests/css/css-layout-api/position-fragment/vlr-ltr.https.html new file mode 100644 index 0000000000..d75a4af639 --- /dev/null +++ b/testing/web-platform/tests/css/css-layout-api/position-fragment/vlr-ltr.https.html @@ -0,0 +1,54 @@ + + + + + + + + + +
+
+
+
+ + diff --git a/testing/web-platform/tests/css/css-layout-api/position-fragment/vlr-rtl.https.html b/testing/web-platform/tests/css/css-layout-api/position-fragment/vlr-rtl.https.html new file mode 100644 index 0000000000..a8ef6c699c --- /dev/null +++ b/testing/web-platform/tests/css/css-layout-api/position-fragment/vlr-rtl.https.html @@ -0,0 +1,54 @@ + + + + + + + + + +
+
+
+
+ + diff --git a/testing/web-platform/tests/css/css-layout-api/position-fragment/vrl-ltr.https.html b/testing/web-platform/tests/css/css-layout-api/position-fragment/vrl-ltr.https.html new file mode 100644 index 0000000000..21c9ce54d6 --- /dev/null +++ b/testing/web-platform/tests/css/css-layout-api/position-fragment/vrl-ltr.https.html @@ -0,0 +1,54 @@ + + + + + + + + + +
+
+
+
+ + diff --git a/testing/web-platform/tests/css/css-layout-api/position-fragment/vrl-rtl.https.html b/testing/web-platform/tests/css/css-layout-api/position-fragment/vrl-rtl.https.html new file mode 100644 index 0000000000..777e725da9 --- /dev/null +++ b/testing/web-platform/tests/css/css-layout-api/position-fragment/vrl-rtl.https.html @@ -0,0 +1,54 @@ + + + + + + + + + +
+
+
+
+ + -- cgit v1.2.3