blob: 6d995ac75e04317d7d26e1585b644507c94bc368 [file] [log] [blame]
<!doctype html>
<html>
<head>
<title>Test - Bug 127101: [CSS Regions] Fix selection and hover effect of content in region with overflow:hidden</title>
<style>
.content {
-webkit-flow-into: flow;
box-shadow: 0px 0px 0px 10px Red;
margin: 10px;
}
.content:hover {
box-shadow: 0px 0px 0px 10px Green;
}
.region {
-webkit-flow-from: flow;
overflow: hidden;
}
body {
margin: 0;
padding: 0;
}
</style>
</head>
<body>
<div class="content">hover me</div>
<div class="region">region</div>
<script type="text/javascript">
if (window.eventSender) {
var box = document.querySelector(".content").getBoundingClientRect();
window.eventSender.mouseMoveTo((box.right + box.left) / 2, (box.top + box.bottom) / 2);
}
</script>
</body>
</html>