blob: 9251db3f6cc639f6e63c81112e1e18260c8304cf [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<title>Test for https://bugs.webkit.org/show_bug.cgi?id=79490</title>
<script src="../resources/text-based-repaint.js"></script>
<script>
window.outputRepaintRects = false;
function repaintTest()
{
document.getElementById('resize-target').style.width = '200px';
document.getElementById('resize-target').style.height = '200px';
}
</script>
</head>
<body style="margin: 0; padding: 0; overflow: hidden;" onload="runRepaintAndPixelTest()">
<div id="resize-target" style="width: 400px; height: 400px; position: absolute;">
<!-- After window resizing, this SVG element should not be visible -->
<svg width="50%" height="50%" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
<rect fill="red" width="100" height="100"></rect>
</svg>
</div>
<div style="width: 100px; height: 100px; position: absolute; background-color: green;"></div>
</body>
</html>