blob: 6c47644ff044127aaf9b407d954771a5d7406677 (
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
|
<html>
<head>
<style>
#scroll {
width: 200px;
height: 200px;
overflow: scroll;
border: 1px solid black;
}
#transform {
width: 100px;
height: 100px;
background-color: green;
transform: translateY(150px);
}
</style>
</head>
<body>
<p id="result">
FAIL. The transform has not been applied to the scrollHeight.
</p>
<div id="scroll">
<div id="transform"></div>
</div>
<script>
if (window.testRunner)
testRunner.dumpAsText();
var scroll = document.getElementById("scroll");
var scrollHeight = scroll.scrollHeight;
if (scrollHeight > 200) {
var result = document.getElementById("result");
result.innerHTML = "SUCCESS! The transform was applied to the scrollHeight!";
}
</script>
</body>
</html>
|