blob: 1804ff10b6a3e1d32f1d2ee11fb1802629e16b53 [file] [log] [blame]
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>foreignObject can be transformed</title>
<style type="text/css">
p, div { color: navy; margin: 0; }
.test { fill: #EEEEEE; font-size: 10px; }
.control { width: 400px; height: 120px; background: #EEEEEE; font-size: 100px; }
</style>
</head>
<body onload="runAfterLayoutAndPaint(repaintTest, true);">
<p>The word "TEST " should appear twice below, the same size each time.</p>
<svg xmlns="http://www.w3.org/2000/svg" width="400" height="120" class="test">
<rect x="0" y="0" width="60" height="12" transform="scale(10)"/>
<foreignObject x="0" y="0" width="60" height="10" transform="scale(10)">
<div xmlns="http://www.w3.org/1999/xhtml"> TEST </div>
</foreignObject>
</svg>
<div class="control">TEST</div>
<script>var zoomCount = 2;</script>
<script src="../../../resources/run-after-layout-and-paint.js"/>
<script src="../resources/testPageZoom.js"/>
</body>
</html>