blob: 64372aea0d56198d94165302bb93a9526fd781e3 [file] [edit]
<!doctype html>
<html lang="en">
<head>
<style>
p, div {
font: 12px/1 monospace;
}
.box {
width: 260px;
padding: 5px;
margin: 10px;
}
#region {
-webkit-flow-from: flow;
width: 300px;
height: 190px;
border: 5px solid green;
border-left: 100px solid green;
background-color: #ddddff;
margin-top: 50px;
margin-left: 50px;
}
#region:hover {
border-color: darkred;
-webkit-flow-from: none;
}
#content {
-webkit-flow-into: flow;
border: 5px solid blue;
margin-top: -50px;
margin-left: -130px;
height: 250px;
}
</style>
</head>
<script type="text/javascript">
if (window.testRunner)
testRunner.waitUntilDone();
function beginTest() {
if (window.eventSender) {
var region = document.querySelector("#region");
// move mouse on the hover test object
eventSender.mouseMoveTo(region.offsetLeft + 280, region.offsetTop + 20);
eventSender.mouseDown(0);
testRunner.notifyDone();
}
}
</script>
<body onload="beginTest()">
<a href="https://bugs.webkit.org/show_bug.cgi?id=117259">[CSS Regions] When changing flow-from/flow-into on :hover, elements overflowing the region are not correctly repainted</a>
<p>When hovering the <span style="color:green"><b>region</b></span>, the <span style="color:blue"><b>blue</b></span> box <b>and its overflow</b> should disappear (the region's <b>flow-from</b> will change to "none")</p>
<div id="region"></div>
<div id="content" class="box">This box is flowed into the <span style="color:green"><b>region</b></span></div>
</body>
</html>