2 Any copyright is dedicated to the Public Domain.
3 http://creativecommons.org/publicdomain/zero/1.0/
5 <svg xmlns=
"http://www.w3.org/2000/svg"
6 xmlns:
html=
"http://www.w3.org/1999/xhtml"
9 <title>Testcase for repaint of the area previously covered by a foreignObject
</title>
11 <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=369992 -->
13 <script type=
"application/javascript">
15 // The green rect is initially covered by the red div. After the div
16 // has rendered the foreignObject (and thus div) is moved out
17 // of the viewport which should then be filled by the green rect as a result.
19 document.addEventListener(
"MozReftestInvalidate", doTest, false);
20 setTimeout(doTest,
4000); // fallback for running outside reftest
23 document.getElementById('fo').setAttribute('y', '
100%');
25 document.documentElement.removeAttribute('class');
29 <rect width=
"100%" height=
"100%" fill=
"red"/>
31 <!-- Create the "pass" rect using a foreignObject so the testcase doesn't
32 seem to pass if foreignObject is not supported -->
33 <foreignObject width=
"100%" height=
"100%">
34 <html:div style=
"display:block;width:100%;height:100%;background:lime;"/>
37 <foreignObject id=
"fo" width=
"100%" height=
"100%">
38 <html:div style=
"display:block;width:100%;height:100%;background:red;"/>