Fri, 16 Jan 2015 18:13:44 +0100
Integrate suggestion from review to improve consistency with existing code.
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" class="reftest-wait"
6 onload="startTest()">
8 <script>
9 <![CDATA[
11 function startTest() {
12 document.addEventListener("MozReftestInvalidate", boom, false);
13 setTimeout(boom, 4000); // fallback for running outside reftest
14 }
16 function boom() {
17 document.getElementById('inner1').setAttribute('x', 20);
18 document.getElementById('inner2').setAttribute('width', 100);
19 document.documentElement.removeAttribute("class");
20 }
22 ]]>
23 </script>
25 <rect width="100%" height="100%" fill="lime"/>
27 <rect x="20" y="20" width="100" height="100" fill="red"/>
29 <svg id="inner1" x="260" y="20" width="100" height="100">
30 <rect x="0" y="0" width="100" height="100" fill="lime"/>
31 </svg>
33 <rect x="20" y="140" width="100" height="100" fill="red"/>
35 <svg id="inner2" x="20" y="140" width="1" height="100">
36 <rect x="0" y="0" width="100" height="100" fill="lime"/>
37 </svg>
39 </svg>