blob: 0667f71a9f582063a2caccce18f179573adff8fc [file] [log] [blame]
<style>
#container {
position: absolute;
top: 100px;
left: 100px;
width: 100px;
height: 100px;
overflow: hidden;
background-color: green;
}
#child {
width: 10px;
height: 10px;
background-color: blue;
}
</style>
<div id=container><div id=child></div></div>
<pre id=result></pre>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
function overflowChanged(event) {
result.innerText = !event.horizontalOverflow ? "PASS" : "FAIL";
if (window.testRunner)
testRunner.notifyDone();
}
container.addEventListener('overflowchanged', overflowChanged, false);
document.body.offsetHeight;
// This should not trigger horizontal overflow change.
child.style.height = "120px";
</script>