1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/svg/foreignObject-change-transform-01.svg Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,32 @@ 1.4 +<!-- 1.5 + Any copyright is dedicated to the Public Domain. 1.6 + http://creativecommons.org/publicdomain/zero/1.0/ 1.7 +--> 1.8 +<svg xmlns="http://www.w3.org/2000/svg" 1.9 + xmlns:html="http://www.w3.org/1999/xhtml" 1.10 + class="reftest-wait"> 1.11 + 1.12 + <title>Testcase for changing the 'transform' on foreignObject</title> 1.13 + 1.14 + <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=369911 --> 1.15 + 1.16 + <script type="application/javascript"> 1.17 + 1.18 +// The foreignObject is inverted so that it is outside the viewport. 1.19 +// After the rect has rendered the transform on the 1.20 +// foreignObject is removed and the green div should fill the viewport. 1.21 + 1.22 + document.addEventListener("MozReftestInvalidate", doTest, false); 1.23 + setTimeout(doTest, 4000); // fallback for running outside reftest 1.24 + 1.25 + function doTest() { 1.26 + document.getElementById('fo').setAttribute('transform', ''); 1.27 + 1.28 + document.documentElement.removeAttribute('class'); 1.29 + } 1.30 + </script> 1.31 + <rect width="100%" height="100%" fill="red"/> 1.32 + <foreignObject id="fo" width="100%" height="100%" transform="scale(-1)"> 1.33 + <html:div style="display:block;width:100%;height:100%;background:lime;"/> 1.34 + </foreignObject> 1.35 +</svg>