blob: 73e3b0dd6dba8103f99c90aa41c1ec0f4e84cc89 [file] [log] [blame]
<!DOCTYPE html>
<script src="../../fast/repaint/resources/text-based-repaint.js"></script>
<script src="../../resources/run-after-layout-and-paint.js"></script>
<script>
window.testIsAsync = true;
window.onload = runRepaintTest;
function repaintTest() {
runAfterLayoutAndPaint(function() {
document.getElementsByTagName('rect')[1].setAttribute('transform', 'scale(2)');
if (window.testRunner)
finishRepaintTest();
});
};
</script>
<svg width="200" height="200">
<rect width="200" height="200" fill="red"/>
<rect width="100" height="100" fill="green"/>
</svg>
<p>Test if applying a transform to a &lt;rect> properly repaints the &lt;rect>.</p>
<p>Pass if there's a green 200x200 (px) rectangle below, and no red visible.</p>