Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- Manifest: layout/reftests/svg/reftest.list
<!--
Any copyright is dedicated to the Public Domain.
-->
<title>Testcase for removing display:none from foreignObject child</title>
<script type="application/ecmascript">
<![CDATA[
document.addEventListener("MozReftestInvalidate", doTest, false);
setTimeout(doTest, 4000); // fallback for running outside reftest
function doTest() {
document.getElementById('div').style.display = 'block';
document.documentElement.removeAttribute('class');
}
]]>
</script>
<rect width="100%" height="100%" fill="red"/>
<foreignObject width="100%" height="100%">
style="display:none; background:lime; width:100%; height:100%;"/>
</foreignObject>
</svg>