1
0
Fork 0
firefox/testing/web-platform/tests/svg/animations/switch-animation-01.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

19 lines
702 B
HTML

<!doctype html>
<html class="reftest-wait">
<title>Test animation as children of switch elements</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() {
document.getElementsByTagName('svg')[0].setCurrentTime(2);
waitForAtLeastOneFrame().then(takeScreenshot);
}
</script>
<svg onload="test()">
<switch>
<set systemLanguage="x-xl" xlink:href="#test" attributeName="width" begin="2s" to="0" />
<set xlink:href="#test" attributeName="height" begin="2s" to="100" />
</switch>
<rect id="test" width="100" height="0" fill="green"/>
</svg>