blob: f8d2173e90b6960d5b9e918247d11c5c50e5cb8a (
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
|
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<style>
div {
float: left;
width: 300px;
height: 200px;
background: url(repeatable-diagonal-gradient.png);
}
</style>
<script type="text/javascript">
var i = 32;
function test() {
document.getElementById("a").style.width = (i*10)+'px';
document.getElementById("b").style.opacity = 0.999 - i/64.0;
i--;
if (i >= 0) {
setTimeout(test, 10);
} else {
document.documentElement.removeAttribute("class");
}
}
</script>
</head>
<body onload="test()">
<div id="a"></div>
<div id="b"></div>
</body>
</html>
|