blob: f05412f4ceadab31d370e0b1ac10bc3f6ab4d976 [file] [log] [blame]
<style>
#target { background-color: red; }
#target:hover { background-color: green; }
</style>
<div style="margin: 100px 0 0 92px; -webkit-writing-mode: horizontal-bt; height: 100px; width: 100px;">
<div style="height: 100px;"></div>
<div id="target" style="height: 50px;"></div>
</div>
<p>
This tests hit-testing in the overflow area of flipped-blocks writing mode
blocks.
</p>
<p>
The red rectangle should turn green when you hover over it.
</p>
<p id="result">
</p>
<script>
var target = document.getElementById("target");
var result = document.elementFromPoint(150, 75);
if (window.testRunner)
testRunner.dumpAsText();
document.getElementById("result").innerText = result === target ? "PASS" : "FAIL";
</script>