mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
20 lines
1.1 KiB
XML
20 lines
1.1 KiB
XML
|
<svg xmlns="http://www.w3.org/2000/svg" xmlns:html="http://www.w3.org/1999/xhtml">
|
||
|
|
||
|
<title>Testcase: foreignObject should clip its content</title>
|
||
|
|
||
|
<!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=378897 -->
|
||
|
|
||
|
<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="background: lime none repeat scroll 0%; display: block; height: 100%; width: 100%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"/>
|
||
|
</foreignObject>
|
||
|
|
||
|
<!-- test 'overflow' -->
|
||
|
<foreignObject x="-10" y="-10" width="10" height="10" overflow="hidden" style="overflow:hidden;">
|
||
|
<html:div style="background: red none repeat scroll 0%; display: block; height: 10000px; width: 10000px; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"/>
|
||
|
</foreignObject>
|
||
|
|
||
|
</svg>
|