blob: bce218c7e9840bc3534cb586ea048cf3ad0d761a [file] [log] [blame]
<html xmlns="">
<script src="../resources/text-based-repaint.js"></script>
<body onload="runRepaintAndPixelTest()">
<p>The svg area contained in the div element (red box), should fill out the whole area (two green rectangles, first: (0,0)-(50%,50%), second: (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="" xmlns:xlink="" width="100%" height="100%">
<symbol id="targetSymbol" viewBox="0 0 200 200">
<rect x="50%" y="50%" width="50%" height="50%" fill="green"/>
<rect width="100" height="100" fill="green"/>
<use xlink:href="#targetSymbol"/>
function repaintTest() {
document.getElementById("contentBox").style.setProperty("width", "400px");