blob: 21c298ceb8d0126eca5b12533a9c91e6fa4d2930 (
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>
@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>
|