no bug - Import translations from android-l10n r=release a=l10n CLOSED TREE
[gecko.git] / layout / reftests / svg / gradient-live-01c.svg
blob7300ac1b3036cacb7788c4b289bc2dd2a678ad64
1 <svg xmlns="http://www.w3.org/2000/svg"
2 xmlns:xlink="http://www.w3.org/1999/xlink"
3 class="reftest-wait" font-size="80">
5 <script type="application/javascript">
6 document.addEventListener("MozReftestInvalidate", doTest, false);
7 setTimeout(doTest, 4000); // fallback for running outside reftest
9 function doTest() {
10 document.getElementById('blue').setAttribute('stop-color', '#0000dd');
11 document.documentElement.removeAttribute('class');
14 </script>
16 <!-- Tests that gradients are live to stop color changes. -->
18 <linearGradient id="grad1" gradientUnits="objectBoundingBox" x1="0" y1="0" x2="1" y2="0">
19 <stop id="green" stop-color="#00dd00" offset="0"/>
20 <stop id="blue" stop-color="red" offset="0.5"/>
21 <stop id="magenta" stop-color="magenta" offset="1"/>
22 </linearGradient>
23 <rect x="20" y="20" width="440" height="80" fill="url(#grad1)" />
25 <linearGradient id="grad2" xlink:href="#grad1"/>
26 <rect x="20" y="150" width="440" height="80" fill="url(#grad2)" />
27 <text x="20" y="300" width="440" height="80" fill="url(#grad1)">gradiation</text>
28 <text x="20" y="400" width="440" height="80" fill="url(#grad2)">gradiation</text>
30 </svg>