From b8c82c1ab00dc8d3738523b60afd9cdcf548e83c Mon Sep 17 00:00:00 2001 From: Martin Robinson Date: Wed, 27 Mar 2024 12:57:27 +0100 Subject: layout: Allow transforming inline replaced elements (#31833) This requires passing through information about whether or not the element in question is replaced when checking to see if it's transformable and transitively all functions that make decisions about containing blocks. A new FragmentFlag is added to help track this -- it will be set on both the replaced items BoxFragment container as well as the Fragment for the replaced item itself. Fixes #31806. --- tests/wpt/meta/MANIFEST.json | 17 +++++++++++++++++ .../transform3d-image-scale-001.html.ini | 2 -- .../support/transform-iframe-002-contents.html | 14 ++++++++++++++ .../css/css-transforms/transform-iframe-002.html | 20 ++++++++++++++++++++ 4 files changed, 51 insertions(+), 2 deletions(-) delete mode 100644 tests/wpt/meta/css/css-transforms/transform3d-image-scale-001.html.ini create mode 100644 tests/wpt/tests/css/css-transforms/support/transform-iframe-002-contents.html create mode 100644 tests/wpt/tests/css/css-transforms/transform-iframe-002.html (limited to 'tests') diff --git a/tests/wpt/meta/MANIFEST.json b/tests/wpt/meta/MANIFEST.json index 0654489de5b..282124d4b21 100644 --- a/tests/wpt/meta/MANIFEST.json +++ b/tests/wpt/meta/MANIFEST.json @@ -260846,6 +260846,19 @@ {} ] ], + "transform-iframe-002.html": [ + "b9b10ea368324efa93e73476fc8084dadb89f2d0", + [ + null, + [ + [ + "/css/reference/ref-filled-green-100px-square-only.html", + "==" + ] + ], + {} + ] + ], "transform-image-001.html": [ "0565b8dbeeb86b82993847a139c8f38b66c0b163", [ @@ -415399,6 +415412,10 @@ "d92c3705b6b9dd270d17c64fce9010a5ab1fe4f3", [] ], + "transform-iframe-002-contents.html": [ + "84f079c90bcb590e81ba39753edf723bcb123858", + [] + ], "transform-lime-square.png": [ "8f939993332e1101b921615723ec6067f3bb90a3", [] diff --git a/tests/wpt/meta/css/css-transforms/transform3d-image-scale-001.html.ini b/tests/wpt/meta/css/css-transforms/transform3d-image-scale-001.html.ini deleted file mode 100644 index 11da067d959..00000000000 --- a/tests/wpt/meta/css/css-transforms/transform3d-image-scale-001.html.ini +++ /dev/null @@ -1,2 +0,0 @@ -[transform3d-image-scale-001.html] - expected: FAIL diff --git a/tests/wpt/tests/css/css-transforms/support/transform-iframe-002-contents.html b/tests/wpt/tests/css/css-transforms/support/transform-iframe-002-contents.html new file mode 100644 index 00000000000..84f079c90bc --- /dev/null +++ b/tests/wpt/tests/css/css-transforms/support/transform-iframe-002-contents.html @@ -0,0 +1,14 @@ + + + + CSS Test (Transforms): Iframe (contents) + + + + + + diff --git a/tests/wpt/tests/css/css-transforms/transform-iframe-002.html b/tests/wpt/tests/css/css-transforms/transform-iframe-002.html new file mode 100644 index 00000000000..b9b10ea3683 --- /dev/null +++ b/tests/wpt/tests/css/css-transforms/transform-iframe-002.html @@ -0,0 +1,20 @@ + + + + CSS Test (Transforms): Iframe + + + + + +

Test passes if there is a filled green square.

+ + + -- cgit v1.2.3