blob: f335b2bd7a0f8347bcd25d30318ba81f6cc3a884 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style>
#leftc {
float: left;
width: 500px;
background-color: silver;
margin-right: -100px;
}
#rightc {
float: right;
width: 400px;
background-color: rgba(0, 128, 0, 0.75);
padding-bottom: 1px;
}
</style>
</head>
<body>
<div style="width:800px">
<div id="leftc">foo</div>
<div id="rightc">bar</div>
<div style="height:0px; width:0px; clear:left;"></div>
</div>
<script src="../../../resources/js-test-pre.js"></script>
<script>
shouldBe("document.elementFromPoint(450, 10)", "document.getElementById('rightc')");
</script>
<script src="../../../resources/js-test-post.js"></script>
</body>
</html>