| <?xml version="1.0"?> |
| <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" onload="runAfterLayoutAndPaint(repaintTest, true);"> |
| <style> |
| /* This test is not concerned with scrollbar differences. */ |
| :root { |
| overflow: hidden; |
| } |
| </style> |
| <!-- This test verifies that foreignObject content does not have the zoom factor applied twice. --> |
| |
| <!-- After zooming, there should be exactly one pixel of blue in each dimension --> |
| <rect width="100" height="100" fill="blue"/> |
| |
| <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="orange"/> |
| </svg> |
| </foreignObject> |
| |
| <foreignObject width="800" height="600"> |
| <html xmlns="http://www.w3.org/1999/xhtml"> |
| <div style="background-color: green; width: 99px; height: 99px;"></div> |
| </html> |
| </foreignObject> |
| |
| <defs> |
| <script>var zoomCount = 4;</script> |
| <script xlink:href="../../../resources/run-after-layout-and-paint.js"/> |
| <script xlink:href="../resources/testPageZoom.js"/> |
| </defs> |
| </svg> |