|
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" id="p1"> |
|
8 <title>Test for changes to the IDs in the document causing textPath references to update</title> |
|
9 |
|
10 <defs> |
|
11 <path id="p1" d="M 100,100 h 200"/> |
|
12 </defs> |
|
13 |
|
14 <text style="16px sans-serif"><textPath xlink:href="#p1">Hello</textPath></text> |
|
15 |
|
16 <script> |
|
17 document.addEventListener("MozReftestInvalidate", doTest, false); |
|
18 setTimeout(doTest, 4000); // fallback for running outside reftest |
|
19 |
|
20 function doTest() { |
|
21 document.documentElement.removeAttribute("id"); |
|
22 document.documentElement.removeAttribute("class"); |
|
23 } |
|
24 </script> |
|
25 </svg> |