blob: e41e644bc82aeb6c71f56641116fd59b9a4b3523 [file] [log] [blame]
antti@apple.com16674fa2017-05-10 22:23:11 +00001<!doctype html>
2<html>
3<head>
4<style>
5#test1 {
6 animation:test1 3s steps(1,end) 0s 1 normal both
7}
8#test2 {
9 animation:test2 3s steps(1,end) 0s 1 normal both
10}
11@keyframes test1 {
12 from {visibility: hidden}
13 to {visibility: visible}
14}
15@keyframes test2 {
16 from {color: green}
17 to {color: red}
18}
19</style>
antti@apple.com16674fa2017-05-10 22:23:11 +000020</head>
21<body>
22<div id=test1>
23This shouldn't be initially visible
24<div>This shouldn't be initially visible</div>
25</div>
26<div id=test2>
27This should be initially green
28<div>This should be initially green</div>
29</div>
antti@apple.combebe57b22017-05-22 13:17:24 +000030<script>
31if (window.testRunner) {
32 testRunner.waitUntilDone();
33 test2.onanimationstart = () => testRunner.notifyDone();
34}
35</script>
antti@apple.com16674fa2017-05-10 22:23:11 +000036</body>
37</html>