blob: 2ffb7b6abd08eab500bae15dcda6e0cb5f52cf5d [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<title>This tests that repaint overflow part when overflow becomes clipped.</title>
<style>
#container {
background: green;
overflow: visible;
height: 50px;
width: 50px;
}
#inner {
background: red;
width: 50px;
height: 100px;
position: relative;
top: 100px;
}
</style>
</head>
<body>
PASS if no red is visible.
<div id=container><div id=inner></div></div>
<script>
if (window.testRunner)
testRunner.waitUntilDone();
setTimeout(function() {
document.getElementById("inner").style.display = "none";
document.getElementById("container").style.overflow = "hidden";
document.body.offsetWidth;
if (window.testRunner)
testRunner.notifyDone();
}, 10);
</script>
</body>
</html>