blob: f4fc20e1a2914ddc75a7a6fde7aae331afa29b8c (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
<html>
<head>
<style>
#scroll {
width: 230px;
height: 230px;
overflow: scroll;
border: 1px solid black;
}
#container {
width:200px;
height:200px;
background-color:blue;
transform: rotate(180deg);
}
#spill {
width:100px;
height:100px;
background-color:green;
position:absolute;
top:-50px;
}
</style>
</head>
<body>
<p id="result">
FAIL. The transform has not been applied to the scrollHeight.
</p>
<div id="scroll">
<div id="container">
<div id="spill"></div>
</div>
</div>
<script>
if (window.testRunner)
testRunner.dumpAsText();
var scroll = document.getElementById("scroll");
var scrollHeight = scroll.scrollHeight;
if (scrollHeight > 215) {
var result = document.getElementById("result");
result.innerHTML = "SUCCESS! The transform was applied to the scrollHeight!";
}
</script>
</body>
</html>
|