diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:22:09 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:22:09 +0000 |
commit | 43a97878ce14b72f0981164f87f2e35e14151312 (patch) | |
tree | 620249daf56c0258faa40cbdcf9cfba06de2a846 /testing/web-platform/tests/svg/text/reftests/gradient-after-reposition.html | |
parent | Initial commit. (diff) | |
download | firefox-upstream.tar.xz firefox-upstream.zip |
Adding upstream version 110.0.1.upstream/110.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/svg/text/reftests/gradient-after-reposition.html')
-rw-r--r-- | testing/web-platform/tests/svg/text/reftests/gradient-after-reposition.html | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/testing/web-platform/tests/svg/text/reftests/gradient-after-reposition.html b/testing/web-platform/tests/svg/text/reftests/gradient-after-reposition.html new file mode 100644 index 0000000000..850b0eb91d --- /dev/null +++ b/testing/web-platform/tests/svg/text/reftests/gradient-after-reposition.html @@ -0,0 +1,30 @@ +<!DOCTYPE html> +<html class="reftest-wait"> +<meta charset="utf-8"> +<link rel="match" href="gradient-after-reposition-ref.html"> +<link rel="help" href="https://crbug.com/1274630"> +<body> +<svg style="border: 1px solid gray;"> + <defs> + <linearGradient id="testGradient"> + <stop stop-color="#000000" offset="0%"/> + <stop stop-color="#000000" offset="50%"/> + <stop stop-color="#3dcd58" offset="50%"/> + <stop stop-color="#ff4a4a" offset="100%"/> + </linearGradient> + </defs> + <text id="test" fill="url(#testGradient)" x="25" y="50" font-weight="bold" font-size="40"> + Test gradient</text> +</svg> + +<script> +requestAnimationFrame(() => { + requestAnimationFrame(() => { + const text = document.getElementById('test'); + text.setAttribute('x', '50'); + document.documentElement.classList.remove('reftest-wait'); + }); +}); +</script> +</body> +</html> |