1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/svg/foreignObject-display-01.svg Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,30 @@ 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" version="1.1" class="reftest-wait"> 1.9 + 1.10 + <title>Testcase for removing display:none from foreignObject child</title> 1.11 + 1.12 + <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=281260 --> 1.13 + 1.14 + <script type="application/ecmascript"> 1.15 + <![CDATA[ 1.16 + 1.17 +function doTest(event) 1.18 +{ 1.19 + document.getElementById('div').style.display = 'block'; 1.20 + document.documentElement.removeAttribute('class'); 1.21 +} 1.22 + 1.23 +document.addEventListener("MozReftestInvalidate", doTest, false); 1.24 +setTimeout(doTest, 4000); // fallback for running outside reftest 1.25 + 1.26 + ]]> 1.27 + </script> 1.28 + <rect width="100%" height="100%" fill="red"/> 1.29 + <foreignObject width="100%" height="100%"> 1.30 + <div xmlns="http://www.w3.org/1999/xhtml" id="div" 1.31 + style="display:none; background:lime; width:100%; height:100%;"/> 1.32 + </foreignObject> 1.33 +</svg>