blob: 4090f35bd4a11f16cbfabb2cc014fd1101056ef6 [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: 10px 0; }
.test { fill: #EEEEEE; font-size: 10px; }
.control { width: 400px; height: 120px; background: #EEEEEE; font-size: 100px; }
</style>
</head>
<body>
<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>
</body>
</html>