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 /layout/reftests/bugs/1878294-1.html | |
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 'layout/reftests/bugs/1878294-1.html')
-rw-r--r-- | layout/reftests/bugs/1878294-1.html | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/layout/reftests/bugs/1878294-1.html b/layout/reftests/bugs/1878294-1.html new file mode 100644 index 0000000000..ee91c38290 --- /dev/null +++ b/layout/reftests/bugs/1878294-1.html @@ -0,0 +1,41 @@ +<html class="reftest-wait"> +<svg width="400" height="400"> + <g id="g"> + <circle cx="300" cy="300" r="40" style="fill: red;"></circle> + </g> +</svg> + +<script> +const g = document.getElementById("g") + +let tx = -108213.2; +let ty = -108213.2; +let k = 399; + +let stepSize = 1; + +let num = 0; +let numMs = 100; + +const move = () => { + stepSize = -1 * stepSize; + tx += 0.0001 * stepSize; + ty += 0.0001 * stepSize; + g.setAttribute("transform", `translate(${tx},${ty}) scale(${k})`) + window.setTimeout(move, numMs); + num++; + if (num == 5) { + document.documentElement.className = ""; + } + if (num == 100 && navigator.appVersion.includes("Android")) { + // Android doesn't get a chance to paint and finish the reftest if another + // paint gets queued if we tweak the transfer, so if its taking a long time + // increase the timeout, this timeout value still reproduced the bug when + // test was landed. + numMs = 200; + } +} + +move(); +</script> +</html> |