blob: e312e4a14cc9d8a9195c2188044a8f2e07e13e8a [file] [log] [blame]
<!DOCTYPE html>
Tests subpixel resize of SVG shape. Passes if the resized green rect fully covers the red rect.
<div style="position: absolute; top: 100px; left: 0; transform-origin: 0 0; transform: scale(20)">
<svg width="10" height="10">
<rect fill="red" width="8.8" height="8"/>
<rect id="target" fill="green" width="8.1" height="8"/>
</svg>
</div>
<script src="../../../resources/run-after-layout-and-paint.js"></script>
<script>
runAfterLayoutAndPaint(function() {
target.style.width = '8.8px';
}, true);
</script>