mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
46 lines
1.4 KiB
XML
46 lines
1.4 KiB
XML
<!--
|
|
Any copyright is dedicated to the Public Domain.
|
|
http://creativecommons.org/licenses/publicdomain/
|
|
-->
|
|
<svg xmlns="http://www.w3.org/2000/svg"
|
|
xmlns:html="http://www.w3.org/1999/xhtml"
|
|
class="reftest-wait"
|
|
onload="startTest()">
|
|
|
|
<title>Testcase for repaint of the area previously covered by a foreignObject</title>
|
|
|
|
<!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=369992 -->
|
|
|
|
<script type="application/javascript">
|
|
|
|
// The green rect is initially covered by the red div. After the div
|
|
// has rendered the foreignObject (and thus div) is moved out
|
|
// of the viewport which should then be filled by the green rect as a result.
|
|
|
|
function startTest() {
|
|
document.addEventListener("MozReftestInvalidate", doTest, false);
|
|
// in case we're not gecko
|
|
setTimeout(doTest, 5000);
|
|
}
|
|
|
|
function doTest() {
|
|
document.getElementById('fo').setAttribute('y', '100%');
|
|
|
|
document.documentElement.removeAttribute('class');
|
|
}
|
|
</script>
|
|
|
|
<rect width="100%" height="100%" fill="red"/>
|
|
|
|
<!-- Create the "pass" rect using a foreignObject so the testcase doesn't
|
|
seem to pass if foreignObject is not supported -->
|
|
<foreignObject width="100%" height="100%">
|
|
<html:div style="display:block;width:100%;height:100%;background:lime;"/>
|
|
</foreignObject>
|
|
|
|
<foreignObject id="fo" width="100%" height="100%">
|
|
<html:div style="display:block;width:100%;height:100%;background:red;"/>
|
|
</foreignObject>
|
|
|
|
</svg>
|