blob: 7c754efb7bd536deb1f6ef05083d119c94ecf722 [file] [log] [blame]
<?xml version="1.0"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" onload="runRepaintTest()">
<!-- This test verifies that foreignObject content does not have the zoom factor applied twice. -->
<foreignObject width="800" height="600">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<rect width="99" height="99" fill="red"/>
</svg>
</foreignObject>
<foreignObject width="800" height="600">
<html xmlns="http://www.w3.org/1999/xhtml">
<div style="background-color: red; width: 99px; height: 99px;"></div>
</html>
</foreignObject>
<!-- After zooming, this rect should still be obscuring everything. -->
<rect width="100" height="100" fill="green"/>
<defs>
<script>var zoomCount = 4;</script>
<script xlink:href="../../../fast/repaint/resources/repaint.js"/>
<script xlink:href="../resources/testPageZoom.js"/>
</defs>
</svg>