diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:14:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:14:29 +0000 |
commit | fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8 (patch) | |
tree | 4c1ccaf5486d4f2009f9a338a98a83e886e29c97 /testing/web-platform/tests/svg/pservers | |
parent | Releasing progress-linux version 124.0.1-1~progress7.99u1. (diff) | |
download | firefox-fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8.tar.xz firefox-fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8.zip |
Merging upstream version 125.0.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/svg/pservers')
-rw-r--r-- | testing/web-platform/tests/svg/pservers/reftests/gradient-transform-03.svg | 22 | ||||
-rw-r--r-- | testing/web-platform/tests/svg/pservers/reftests/pattern-transform-03.svg | 21 |
2 files changed, 43 insertions, 0 deletions
diff --git a/testing/web-platform/tests/svg/pservers/reftests/gradient-transform-03.svg b/testing/web-platform/tests/svg/pservers/reftests/gradient-transform-03.svg new file mode 100644 index 0000000000..25e304614d --- /dev/null +++ b/testing/web-platform/tests/svg/pservers/reftests/gradient-transform-03.svg @@ -0,0 +1,22 @@ +<svg xmlns="http://www.w3.org/2000/svg" xmlns:h="http://www.w3.org/1999/xhtml" class="reftest-wait"> + <title>Gradient with 'transform' property added dynamically</title> + <h:link rel="help" href="https://svgwg.org/svg2-draft/single-page.html#pservers-LinearGradientElementGradientTransformAttribute"/> + <h:link rel="help" href="https://drafts.csswg.org/css-transforms/#transform-attribute-specificity"/> + <h:link rel="match" href="reference/green-100x100.svg"/> + <h:script src="/common/reftest-wait.js"/> + <h:script src="/common/rendering-utils.js"/> + + <linearGradient id="lg"> + <stop offset="0" stop-color="green"/> + <stop offset="0.5" stop-color="green"/> + <stop offset="1" stop-color="red"/> + </linearGradient> + <rect width="100" height="100" fill="url(#lg)"/> + <script> + waitForAtLeastOneFrame().then(() => { + const gradient = document.getElementById('lg'); + gradient.style.transform = 'scale(2)'; + takeScreenshot(); + }); + </script> +</svg> diff --git a/testing/web-platform/tests/svg/pservers/reftests/pattern-transform-03.svg b/testing/web-platform/tests/svg/pservers/reftests/pattern-transform-03.svg new file mode 100644 index 0000000000..b2e0e7aaa2 --- /dev/null +++ b/testing/web-platform/tests/svg/pservers/reftests/pattern-transform-03.svg @@ -0,0 +1,21 @@ +<svg xmlns="http://www.w3.org/2000/svg" xmlns:h="http://www.w3.org/1999/xhtml" class="reftest-wait"> + <title>Pattern with 'transform' property added dynamically</title> + <h:link rel="help" href="https://svgwg.org/svg2-draft/single-page.html#pservers-PatternElementPatternTransformAttribute"/> + <h:link rel="help" href="https://drafts.csswg.org/css-transforms/#transform-attribute-specificity"/> + <h:link rel="match" href="reference/green-100x100.svg"/> + <h:script src="/common/reftest-wait.js"/> + <h:script src="/common/rendering-utils.js"/> + + <pattern id="pat" width="100" height="100"> + <rect x="25" y="25" width="75" height="75" fill="red"/> + <rect width="75" height="75" fill="green"/> + </pattern> + <rect width="100" height="100" fill="url(#pat)"/> + <script> + waitForAtLeastOneFrame().then(() => { + const pattern = document.getElementById('pat'); + pattern.style.transform = 'translate(-25px, -25px) scale(2)'; + takeScreenshot(); + }); + </script> +</svg> |