24 lines
1.0 KiB
HTML
24 lines
1.0 KiB
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 fill out the whole area with a green shaped path</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>
|
|
<symbol id="gamesBorder" viewBox="0 0 150 150" >
|
|
<path fill="green" d="M143 103 143 117 a27,10 0 1 1 -136 0 L 7 117 7 103 a27,10 0 0 1 136 0 L52 72 a33,33 0 1 1 5 0" />
|
|
</symbol>
|
|
</defs>
|
|
<use xlink:href="#gamesBorder" x="5%" y="5%" width="90%" height="90%"/>
|
|
</svg>
|
|
</div>
|
|
<script>
|
|
function repaintTest() {
|
|
document.getElementById("contentBox").style.setProperty("width", "400px");
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|