2007-05-03 16:20:17 +04:00
|
|
|
<!--
|
|
|
|
Any copyright is dedicated to the Public Domain.
|
2011-06-21 16:19:35 +04:00
|
|
|
http://creativecommons.org/publicdomain/zero/1.0/
|
2007-05-03 16:20:17 +04:00
|
|
|
-->
|
2013-05-16 04:53:03 +04:00
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" class="reftest-wait">
|
2007-03-20 13:43:12 +03:00
|
|
|
|
2007-03-16 18:49:09 +03:00
|
|
|
<title>Testcase for removing display:none from foreignObject child</title>
|
2007-03-20 13:43:12 +03:00
|
|
|
|
|
|
|
<!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=281260 -->
|
|
|
|
|
2007-03-16 18:49:09 +03:00
|
|
|
<script type="application/ecmascript">
|
|
|
|
<![CDATA[
|
|
|
|
|
2013-05-16 04:53:03 +04:00
|
|
|
function doTest(event)
|
2007-03-16 18:49:09 +03:00
|
|
|
{
|
|
|
|
document.getElementById('div').style.display = 'block';
|
2013-05-16 04:53:03 +04:00
|
|
|
document.documentElement.removeAttribute('class');
|
2007-03-16 18:49:09 +03:00
|
|
|
}
|
|
|
|
|
2013-05-16 04:53:03 +04:00
|
|
|
document.addEventListener("MozReftestInvalidate", doTest, false);
|
|
|
|
setTimeout(doTest, 4000); // fallback for running outside reftest
|
|
|
|
|
2007-03-16 18:49:09 +03:00
|
|
|
]]>
|
|
|
|
</script>
|
|
|
|
<rect width="100%" height="100%" fill="red"/>
|
|
|
|
<foreignObject width="100%" height="100%">
|
|
|
|
<div xmlns="http://www.w3.org/1999/xhtml" id="div"
|
|
|
|
style="display:none; background:lime; width:100%; height:100%;"/>
|
|
|
|
</foreignObject>
|
|
|
|
</svg>
|