23 lines
1002 B
HTML
23 lines
1002 B
HTML
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<script src="../../fast/repaint/resources/repaint.js"></script>
|
|
</head>
|
|
<body onload="runRepaintTest()">
|
|
<p>The svg area contained in the div element (red box), should contain one blue rectangle from (50%,50%)-(100%,100%), especially after resizing the content box to a different size</p>
|
|
<div id="contentBox" style="width: 100px; height: 400px; border: 1px solid red;">
|
|
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100%" height="100%">
|
|
<defs>
|
|
<rect id="targetRect" y="25%" width="50%" height="50%" fill="blue"/>
|
|
<use id="targetUse" x="25%" xlink:href="#targetRect"/>
|
|
</defs>
|
|
<use x="25%" y="25%" xlink:href="#targetUse"/>
|
|
</svg>
|
|
</div>
|
|
<script>
|
|
function repaintTest() {
|
|
document.getElementById("contentBox").style.setProperty("width", "400px");
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|