| <!doctype html> |
| <html lang="en"> |
| <head> |
| <style> |
| p, div { |
| font: 12px/1 monospace; |
| } |
| .box { |
| width: 260px; |
| height: 120px; |
| 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; |
| } |
| |
| #content { |
| -webkit-flow-into: flow; |
| border: 5px solid blue; |
| background: #aaaacc; |
| } |
| #content:hover { |
| -webkit-flow-into: none; |
| } |
| </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); |
| eventSender.mouseDown(0); |
| |
| testRunner.notifyDone(); |
| } |
| } |
| </script> |
| |
| <body onload="beginTest()"> |
| <p>When hovering the <span style="color:blue"><b>blue box</b></span>, it should get out of the region (it's <b>flow-into</b> will change to "none")</p> |
| <div id="content" class="box">This box is flowed into the <span style="color:green"><b>region</b></span> when it is <b>not</b> hovered</div> |
| <div id="region"></div> |
| </body> |
| </html> |