summaryrefslogtreecommitdiffstats
path: root/layout/svg/crashtests/empty-blob-merging.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 14:29:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 14:29:10 +0000
commit2aa4a82499d4becd2284cdb482213d541b8804dd (patch)
treeb80bf8bf13c3766139fbacc530efd0dd9d54394c /layout/svg/crashtests/empty-blob-merging.html
parentInitial commit. (diff)
downloadfirefox-2aa4a82499d4becd2284cdb482213d541b8804dd.tar.xz
firefox-2aa4a82499d4becd2284cdb482213d541b8804dd.zip
Adding upstream version 86.0.1.upstream/86.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'layout/svg/crashtests/empty-blob-merging.html')
-rw-r--r--layout/svg/crashtests/empty-blob-merging.html48
1 files changed, 48 insertions, 0 deletions
diff --git a/layout/svg/crashtests/empty-blob-merging.html b/layout/svg/crashtests/empty-blob-merging.html
new file mode 100644
index 0000000000..4b603c19d9
--- /dev/null
+++ b/layout/svg/crashtests/empty-blob-merging.html
@@ -0,0 +1,48 @@
+<html class="reftest-wait">
+<style>
+@keyframes spinnow {
+ 100% {
+ transform: rotate(360deg) scale(.2, .2);
+ }
+}
+
+rect {
+ transform: rotate(0deg) scale(0.6, 1);
+ transform-origin: center;
+ animation: 5s spinnow infinite linear;
+}
+
+</style>
+<svg width=400 height=400>
+ <!--
+ onwheel is needed so that we get a hit test info display item
+ before the transform on the rect
+ -->
+ <g onwheel="alert(1)">
+ <g id="gr">
+ <circle r=30 fill=yellow cx=300 cy=100 />
+ <circle r=30 fill=yellow cx=10 cy=100 />
+ <circle r=30 fill=yellow cx=300 cy=300 />
+ <circle r=30 fill=yellow cx=10 cy=300 />
+ </g>
+ <rect width=100 height=100 fill=blue x=100 y=100 />
+ <g opacity=0.5>
+ <circle r=30 fill=pink cx=300 cy=100 />
+ <circle r=30 fill=pink cx=10 cy=100 />
+ <circle r=30 fill=pink cx=300 cy=300 />
+ <circle r=30 fill=pink cx=10 cy=300 />
+ </g>
+ </g>
+</svg>
+<script>
+ function blam() {
+ let gr = document.getElementById("gr");
+ gr.remove();
+ document.documentElement.removeAttribute("class");
+ }
+document.addEventListener("MozReftestInvalidate", function() {
+ requestAnimationFrame(function() {
+ blam();
+ });
+});
+</script>