<!DOCTYPE html> | |
<script src="../resources/text-based-repaint.js"></script> | |
<script> | |
// When resizing the div that contains SVG, the SVG root element and rect resize accordingly. | |
onload = runRepaintAndPixelTest; | |
function repaintTest() { | |
target.style.width = '200px'; | |
target.style.height= '200px'; | |
}; | |
</script> | |
<div id="target" style="width: 100px; height: 100px"> | |
<svg viewBox="0 0 200 200"> | |
<rect x="50" y="50" width="100" height="100"/> | |
</svg> | |
</div> |