-
Notifications
You must be signed in to change notification settings - Fork 14
/
duration_broken_value.html
executable file
·75 lines (75 loc) · 1.43 KB
/
duration_broken_value.html
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="utf-8"/>
<title>Bad animation-duration value</title>
<link href="../styles/style-edit.css" rel="stylesheet">
<style>
div {
padding: 20px;
border: 5px black solid!important;
font-family: sans-serif;
text-align: center;
font-size: 2rem;
}
@keyframes red {
from, 30% {
background-color: #f00;
}
to {
background-color: #f33;
}
}
@keyframes green {
from, 30% {
background-color: #030;
}
to {
background-color: #393;
}
}
@keyframes blue {
from, 30% {
background-color: #0000ff;
}
to {
background-color: #33f;
}
}
</style>
</head>
<body>
<style contenteditable id="editme">div {
animation-name: red, green, blue;
animation-iteration-count: 1;
animation-duration: 4s, 0, 2s;
animation-delay: 2s;
}
</style>
<div id="blue"><p>Does the animation even happen?</p></div>
<script>
var foo = document.getElementById('blue');
console.log('foo');
foo.addEventListener( 'webkitAnimationEnd',
function( event ) {
console.log('animation end');
},
false );
foo.addEventListener( 'webkitAnimationStart',
function( event ) {
console.log('animation start');
},
false );
foo.addEventListener( 'animationend',
function( event ) {
console.log('animation end');
},
false );
foo.addEventListener( 'animationstart',
function( event ) {
console.log('animation start');
},
false );
</script>
</body>
</html>