1
0
Fork 0
firefox/testing/web-platform/tests/svg/animations/use-animate-display-none-symbol-2.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

28 lines
726 B
HTML

<!doctype html>
<html class="reftest-wait">
<title>Animate a symbol in a display: none subtree 2 </title>
<link rel="match" href="../struct/reftests/reference/green-100x100.html">
<script src="/common/reftest-wait.js"></script>
<script src="/common/rendering-utils.js"></script>
<script>
function test() {
waitForAtLeastOneFrame().then(takeScreenshot);
}
</script>
<svg>
<use href="#hidden"/>
</svg>
<svg style="display: none">
<symbol id="hidden">
<rect width="100" height="100" fill="red">
<animate
attributeName="fill"
values="red; green"
keyTimes="0; 0.01"
dur="1s"
calcMode="discrete"
fill="freeze"
onbegin="test()"/>
</rect>
</symbol>
</svg>