Wed, 31 Dec 2014 06:55:50 +0100
Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2
michael@0 | 1 | <!-- |
michael@0 | 2 | Any copyright is dedicated to the Public Domain. |
michael@0 | 3 | http://creativecommons.org/publicdomain/zero/1.0/ |
michael@0 | 4 | --> |
michael@0 | 5 | <svg xmlns="http://www.w3.org/2000/svg" |
michael@0 | 6 | xmlns:html="http://www.w3.org/1999/xhtml" |
michael@0 | 7 | class="reftest-wait"> |
michael@0 | 8 | |
michael@0 | 9 | <title>Testcase for changing the 'transform' on foreignObject</title> |
michael@0 | 10 | |
michael@0 | 11 | <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=369911 --> |
michael@0 | 12 | |
michael@0 | 13 | <script type="application/javascript"> |
michael@0 | 14 | |
michael@0 | 15 | // The foreignObject is inverted so that it is outside the viewport. |
michael@0 | 16 | // After the rect has rendered the transform on the |
michael@0 | 17 | // foreignObject is removed and the green div should fill the viewport. |
michael@0 | 18 | |
michael@0 | 19 | document.addEventListener("MozReftestInvalidate", doTest, false); |
michael@0 | 20 | setTimeout(doTest, 4000); // fallback for running outside reftest |
michael@0 | 21 | |
michael@0 | 22 | function doTest() { |
michael@0 | 23 | document.getElementById('fo').setAttribute('transform', ''); |
michael@0 | 24 | |
michael@0 | 25 | document.documentElement.removeAttribute('class'); |
michael@0 | 26 | } |
michael@0 | 27 | </script> |
michael@0 | 28 | <rect width="100%" height="100%" fill="red"/> |
michael@0 | 29 | <foreignObject id="fo" width="100%" height="100%" transform="scale(-1)"> |
michael@0 | 30 | <html:div style="display:block;width:100%;height:100%;background:lime;"/> |
michael@0 | 31 | </foreignObject> |
michael@0 | 32 | </svg> |