Fri, 16 Jan 2015 18:13:44 +0100
Integrate suggestion from review to improve consistency with existing code.
1 <svg xmlns="http://www.w3.org/2000/svg" version="1.1" class="reftest-wait"
2 height="0" width="0">
3 <script>
4 document.addEventListener("MozReftestInvalidate", doTest, false);
5 setTimeout(doTest, 4000); // fallback for running outside reftest
7 function doTest() {
8 document.documentElement.removeAttribute("width");
9 document.documentElement.removeAttribute("height");
10 document.documentElement.removeAttribute("class");
11 }
12 </script>
13 <rect width="100%" height="100%" fill="red"/>
14 <foreignObject width="100%" height="100%">
15 <div xmlns="http://www.w3.org/1999/xhtml"
16 style="background:lime; width:100%; height:100%;"/>
17 </foreignObject>
18 </svg>