Backed out 6 changesets (bug 1921980) for causing wrench bustages. CLOSED TREE
[gecko.git] / layout / reftests / svg / dynamic-textPath-02.svg
blob6775258618a0d7aa93a246e6851affc0d538a3b9
1 <!--
2 Any copyright is dedicated to the Public Domain.
3 http://creativecommons.org/publicdomain/zero/1.0/
4 -->
5 <svg xmlns="http://www.w3.org/2000/svg"
6 xmlns:xlink="http://www.w3.org/1999/xlink"
7 class="reftest-wait">
8 <title>Test for changes to the IDs in the document causing textPath references to update</title>
10 <defs>
11 <path id="p1" d="M 100,100 h 200"/>
12 <path id="p1" d="M 100,200 h 200"/>
13 </defs>
15 <text style="16px sans-serif"><textPath xlink:href="#p1">Hello</textPath></text>
17 <script>
18 document.addEventListener("MozReftestInvalidate", doTest, false);
19 setTimeout(doTest, 4000); // fallback for running outside reftest
21 function doTest() {
22 document.getElementsByTagName("path")[0].removeAttribute("id");
23 document.documentElement.removeAttribute("class");
25 </script>
26 </svg>