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