Fri, 16 Jan 2015 18:13:44 +0100
Integrate suggestion from review to improve consistency with existing code.
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" version="1.1" class="reftest-wait"> |
michael@0 | 6 | |
michael@0 | 7 | <title>Testcase for removing display:none from foreignObject child</title> |
michael@0 | 8 | |
michael@0 | 9 | <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=281260 --> |
michael@0 | 10 | |
michael@0 | 11 | <script type="application/ecmascript"> |
michael@0 | 12 | <![CDATA[ |
michael@0 | 13 | |
michael@0 | 14 | function doTest(event) |
michael@0 | 15 | { |
michael@0 | 16 | document.getElementById('div').style.display = 'block'; |
michael@0 | 17 | document.documentElement.removeAttribute('class'); |
michael@0 | 18 | } |
michael@0 | 19 | |
michael@0 | 20 | document.addEventListener("MozReftestInvalidate", doTest, false); |
michael@0 | 21 | setTimeout(doTest, 4000); // fallback for running outside reftest |
michael@0 | 22 | |
michael@0 | 23 | ]]> |
michael@0 | 24 | </script> |
michael@0 | 25 | <rect width="100%" height="100%" fill="red"/> |
michael@0 | 26 | <foreignObject width="100%" height="100%"> |
michael@0 | 27 | <div xmlns="http://www.w3.org/1999/xhtml" id="div" |
michael@0 | 28 | style="display:none; background:lime; width:100%; height:100%;"/> |
michael@0 | 29 | </foreignObject> |
michael@0 | 30 | </svg> |