blob: 77bb1e25a83965ce8d3018f4d7a0f154e71189d2 (
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
|
<!DOCTYPE html>
<html>
<head>
<style>
@-moz-keyframes togreen {
100% {
color: green;
}
}
.a:after {
animation-name: togreen;
animation-duration: 10s;
}
</style>
<script>
function boom()
{
document.documentElement.setAttribute("class", "a");
document.documentElement.offsetHeight;
document.documentElement.appendChild(document.createElement("span"));
document.documentElement.removeAttribute("class");
}
</script>
</head>
<body onload="boom();"></body>
</html>
|