blob: 660b7fd1a29b3983e7b4615ada3704228d7c5b6a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
<html>
<head>
<style>
#rotated {
width: 100px;
height: 100px;
background: red;
margin: 10px;
padding: 10px;
transform: rotate(180deg);
}
</style>
<script>
if (window.testRunner)
window.testRunner.dumpAsText()
function runTest()
{
document.body.offsetWidth;
var elt = document.elementFromPoint(50, 50);
if (elt == document.getElementById('rotated'))
document.getElementById('console').innerHTML = 'PASS';
else
document.getElementById('console').innerHTML = 'FAIL';
elt.style.display = 'none';
}
</script>
</head>
<body onload="runTest()">
<div id="rotated">180 degree rotation</div>
<div id="console"></div>
</body>
</html>
|