|
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" version="1.1" class="reftest-wait" |
|
6 xmlns:xlink="http://www.w3.org/1999/xlink"> |
|
7 <title>Testing that style changes are reflected in patterns</title> |
|
8 <style> |
|
9 .foo { fill:lime; } |
|
10 </style> |
|
11 <defs> |
|
12 <pattern id="r1" width="100%" height="100%" patternUnits="userSpaceOnUse" xlink:href="#r2"> |
|
13 </pattern> |
|
14 </defs> |
|
15 <defs id="d"> |
|
16 <pattern id="r2"> |
|
17 <rect width="100%" height="100%"/> |
|
18 </pattern> |
|
19 </defs> |
|
20 |
|
21 <rect id="u1" width="100%" height="100%" fill="url(#r1)"/> |
|
22 |
|
23 <script> |
|
24 document.addEventListener("MozReftestInvalidate", doTest, false); |
|
25 setTimeout(doTest, 4000); // fallback for running outside reftest |
|
26 |
|
27 function doTest() { |
|
28 document.getElementById("d").setAttribute("class", "foo"); |
|
29 document.documentElement.removeAttribute("class"); |
|
30 } |
|
31 </script> |
|
32 </svg> |