blob: dde407c1fb7ffdfde9855b105db905e249c2dc52 [file] [log] [blame]
<!DOCTYPE html>
Tests subpixel resize of SVG image. Passes if the resized image 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"/>
<image id="target" href="../../../svg/W3C-SVG-1.1/resources/smiley.png" width="8.1" height="8" preserveAspectRatio="none"/>
</svg>
</div>
<script src="../../../resources/run-after-layout-and-paint.js"></script>
<script>
runAfterLayoutAndPaint(function() {
target.style.width = '8.8px';
}, true);
</script>