blob: 74a6932e6ffe6af12f9de7c94668318073d9b601 (
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
|
<!DOCTYPE html>
<html>
<head>
<style type="text/css" media="screen">
body { background-color:silver }
.box {
height: 200px;
width: 200px;
margin: 10px;
padding: 5px;
background-color: blue;
}
.composited {
transform: translateZ(0);
}
</style>
<script type="text/javascript" charset="utf-8">
function doTest()
{
window.setTimeout(function() {
document.getElementById('test').className = 'composited box';
parent.testDone();
}, 50);
}
window.addEventListener('load', doTest, false);
</script>
</head>
<body>
<div id="test" class="box">
</div>
</body>
</html>
|