Backed out 6 changesets (bug 1921980) for causing wrench bustages. CLOSED TREE
[gecko.git] / layout / reftests / svg / dynamic-text-02.svg
blob20bd7c0c5cf31c08af8cdacd37350aa1d25d7601
1 <?xml version="1.0"?>
2 <!--
3 Any copyright is dedicated to the Public Domain.
4 http://creativecommons.org/publicdomain/zero/1.0/
5 -->
6 <svg version="1.1" xmlns="http://www.w3.org/2000/svg" class="reftest-wait">
7 <title>Testcase for dynamic text changes with filters</title>
8 <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=423998 -->
9 <script>
10 document.addEventListener("MozReftestInvalidate", doTest, false);
11 setTimeout(doTest, 4000); // fallback for running outside reftest
13 function doTest() {
14 document.getElementById("text1").firstChild.nodeValue = "Test1";
15 document.getElementById("text2").setAttribute("x", "200");
16 document.getElementById("text3").setAttribute("font-size", "50");
17 document.getElementById("text4").setAttribute("font-size", "50");
18 document.getElementById("text5").setAttribute("transform", "translate(50,0)");
19 document.getElementById("text6").setAttribute("filter", "url(#shadow)");
20 document.documentElement.removeAttribute("class");
22 </script>
23 <filter id="shadow" filterUnits="objectBoundingBox">
24 <feGaussianBlur in="SourceAlpha" stdDeviation="5"/>
25 </filter>
26 <text id="text1" x="50" y="100" filter="url(#shadow)" font-size="50"> </text>
27 <text id="text2" x="0" y="100" filter="url(#shadow)" font-size="50">Test2</text>
28 <text id="text3" x="50" y="200" filter="url(#shadow)" font-size="5">Test3</text>
29 <text id="text4" x="200" y="200" filter="url(#shadow)" font-size="100">Test4</text>
30 <text id="text5" x="0" y="300" filter="url(#shadow)" font-size="50">Test5</text>
31 <text id="text6" x="200" y="300" font-size="50">Test6</text>
32 </svg>