blob: 782ff4d79a034af50dccd081db3f4d0f55df882b [file] [log] [blame]
<html>
<body style="margin: 0;">
<svg xmlns="http://www.w3.org/2000/svg">
<!-- The FO should be clipped with only the green half visible. -->
<defs>
<clipPath id="clip">
<rect width="200" height="50"/>
</clipPath>
</defs>
<foreignObject width="200" height="100" clip-path="url(#clip)" opacity=".5">
<html xmlns="http://www.w3.org/1999/xhtml">
<body>
<div style="background: green; height: 50px;"></div>
<div style="background: red; height: 50px;"></div>
</body>
</html>
</foreignObject>
</svg>
</body>
</html>