diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-15 03:34:50 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-15 03:34:50 +0000 |
commit | def92d1b8e9d373e2f6f27c366d578d97d8960c6 (patch) | |
tree | 2ef34b9ad8bb9a9220e05d60352558b15f513894 /testing/web-platform/tests/css/css-transforms | |
parent | Adding debian version 125.0.3-1. (diff) | |
download | firefox-def92d1b8e9d373e2f6f27c366d578d97d8960c6.tar.xz firefox-def92d1b8e9d373e2f6f27c366d578d97d8960c6.zip |
Merging upstream version 126.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/css-transforms')
8 files changed, 130 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-transforms/WEB_FEATURES.yml b/testing/web-platform/tests/css/css-transforms/WEB_FEATURES.yml new file mode 100644 index 0000000000..ca13ab5ae1 --- /dev/null +++ b/testing/web-platform/tests/css/css-transforms/WEB_FEATURES.yml @@ -0,0 +1,6 @@ +features: +- name: transforms3d + files: + - "*3d*" + - backface-visibility-* + - perspective-* diff --git a/testing/web-platform/tests/css/css-transforms/animation/WEB_FEATURES.yml b/testing/web-platform/tests/css/css-transforms/animation/WEB_FEATURES.yml new file mode 100644 index 0000000000..831086f99e --- /dev/null +++ b/testing/web-platform/tests/css/css-transforms/animation/WEB_FEATURES.yml @@ -0,0 +1,5 @@ +features: +- name: transforms3d + files: + - backface-visibility-* + - perspective-* diff --git a/testing/web-platform/tests/css/css-transforms/parsing/WEB_FEATURES.yml b/testing/web-platform/tests/css/css-transforms/parsing/WEB_FEATURES.yml new file mode 100644 index 0000000000..831086f99e --- /dev/null +++ b/testing/web-platform/tests/css/css-transforms/parsing/WEB_FEATURES.yml @@ -0,0 +1,5 @@ +features: +- name: transforms3d + files: + - backface-visibility-* + - perspective-* diff --git a/testing/web-platform/tests/css/css-transforms/support/transform-iframe-002-contents.html b/testing/web-platform/tests/css/css-transforms/support/transform-iframe-002-contents.html new file mode 100644 index 0000000000..84f079c90b --- /dev/null +++ b/testing/web-platform/tests/css/css-transforms/support/transform-iframe-002-contents.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html> + <head> + <title>CSS Test (Transforms): Iframe (contents)</title> + <link rel="author" title="Martin Robinson" href="mailto:mrobinson@igalia.com"> + <style> + body { + background: green; + } + </style> + </head> + <body> + </body> +</html> diff --git a/testing/web-platform/tests/css/css-transforms/support/transform-iframe-scroll-position-contents.html b/testing/web-platform/tests/css/css-transforms/support/transform-iframe-scroll-position-contents.html new file mode 100644 index 0000000000..8efcdafc83 --- /dev/null +++ b/testing/web-platform/tests/css/css-transforms/support/transform-iframe-scroll-position-contents.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> + +<html> + <head> + <title>CSS Test (Transforms): iframe scroll position</title> + <link rel="author" title="Martin Robinson" href="mailto:mrobinson@igalia.com"> + <style> + html { background: red; } + </style> + </head> + + <body> + <!-- Make a large red page with a small green and blue square that is scrolled to immediately. --> + <div style="position: absolute; width: 50px; height: 25px; top: 3000px; left: 3000px; background: green;"></div> + <div style="position: absolute; width: 50px; height: 25px; top: 3025px; left: 3000px; background: blue;"></div> + <div style="width: 10000px; height: 10000px;"></div> + <script> + window.scrollTo(3000, 3000); + </script> + </body> +</html> diff --git a/testing/web-platform/tests/css/css-transforms/transform-iframe-002.html b/testing/web-platform/tests/css/css-transforms/transform-iframe-002.html new file mode 100644 index 0000000000..b9b10ea368 --- /dev/null +++ b/testing/web-platform/tests/css/css-transforms/transform-iframe-002.html @@ -0,0 +1,20 @@ +<!DOCTYPE html> +<html> + <head> + <title>CSS Test (Transforms): Iframe</title> + <link rel="author" title="Martin Robinson" href="mailto:mrobinson@igalia.com"> + <link rel="help" href="http://www.w3.org/TR/css-transforms-1/#transform-rendering"> + <meta name="assert" content="This test ensures that an iframe element can be transformed."> + <link rel="match" href="/css/reference/ref-filled-green-100px-square-only.html"> + <style> + iframe { + height: 50px; + width: 50px; + transform: translate(25px, 25px) scale(2, 2); + border: none; + } + </style> + <p>Test passes if there is a filled green square.</p> + <iframe src="support/transform-iframe-002-contents.html"></iframe> + </body> +</html> diff --git a/testing/web-platform/tests/css/css-transforms/transform-iframe-scroll-position-ref.html b/testing/web-platform/tests/css/css-transforms/transform-iframe-scroll-position-ref.html new file mode 100644 index 0000000000..e4d5da75d7 --- /dev/null +++ b/testing/web-platform/tests/css/css-transforms/transform-iframe-scroll-position-ref.html @@ -0,0 +1,30 @@ +<!DOCTYPE html> +<html> + <head> + <title>CSS Test (Transforms): iframe scroll position</title> + <link rel="author" title="Martin Robinson" href="mailto:mrobinson@igalia.com"> + <style> + #iframe { + border: 0; + width: 50px; + height: 50px; + border: solid; + } + + #iframe div { + width: 25px; + height: 50px; + float: left; + } + + .rotate { + transform: rotate(90deg); + } + </style> + <body onload="onLoad();"> + <div id="iframe"> + <div style="background: blue;"></div> + <div style="background: green;"></div> + </div> + </body> +</html> diff --git a/testing/web-platform/tests/css/css-transforms/transform-iframe-scroll-position.html b/testing/web-platform/tests/css/css-transforms/transform-iframe-scroll-position.html new file mode 100644 index 0000000000..efb7bab532 --- /dev/null +++ b/testing/web-platform/tests/css/css-transforms/transform-iframe-scroll-position.html @@ -0,0 +1,29 @@ +<!DOCTYPE html> +<html> + <head> + <title>CSS Test (Transforms): iframe scroll position</title> + <link rel="author" title="Martin Robinson" href="mailto:mrobinson@igalia.com"> + <link rel="help" href="http://www.w3.org/TR/css-transforms-1/#transform-rendering"> + <meta name="assert" content="This test ensures that when an iframe element is transformed, the scroll position of the iframe content is preserved."> + <link rel="match" href="transform-iframe-scroll-position-ref.html"> + <style> + iframe { + border: 0; + width: 50px; + height: 50px; + border: solid; + } + + .rotate { + transform: rotate(90deg); + } + </style> + <body onload="onLoad();"> + <iframe id="iframe" src="support/transform-iframe-scroll-position-contents.html"></iframe> + <script> + function onLoad() { + iframe.classList.toggle("rotate"); + } + </script> + </body> +</html> |