blob: 99718eccb1cb126db99421a171f611f26556c900 [file] [log] [blame]
<!doctype html>
<html lang="en">
<head>
<style>
p, div {
font: 12px/1 monospace;
}
.box {
width: 260px;
height: 120px;
padding: 5px;
margin: 10px;
}
#region1 {
-webkit-flow-from: flow1;
width: 300px;
height: 190px;
border: 5px solid green;
background-color: #ddddff;
margin-bottom: 20px;
}
#region2 {
-webkit-flow-from: flow2;
width: 300px;
height: 190px;
border: 5px solid darkred;
background-color: #ddddff;
position: relative;
left: 350px;
top: -220px;
}
#content {
-webkit-flow-into: flow1;
border: 5px solid blue;
background: #aaaacc;;
}
#content:hover {
-webkit-flow-into: flow2;
}
</style>
</head>
<script type="text/javascript">
if (window.testRunner)
testRunner.waitUntilDone();
function beginTest() {
if (window.eventSender) {
var content = document.querySelector("#content");
// move mouse on the hover test object
eventSender.mouseMoveTo(content.offsetLeft + 20, content.offsetTop + 20);
testRunner.notifyDone();
}
}
</script>
<script type="text/javascript">
function elementHovered() {
if (window.testRunner)
document.getElementById("content").style.webkitFlowInto = "flow2";
}
</script>
<body onload="beginTest()">
<p>When hovering the <span style="color:blue"><b>blue box</b></span>, it should move to the <span style="color:darkred"><b>second region</b></span> (it's <b>flow-into</b> will change to the 2nd thread)</p>
<div id="region1"></div>
<div id="region2"></div>
<div id="content" class="box" onmouseover="elementHovered()">This box is flowed into the <span style="color:green"><b>first region</b></span> when it is <b>not</b> hovered and into the <span style="color:darkred"><b>second region</b></span> when it <b>is</b></div>
</body>
</html>