antti@apple.com | 16674fa | 2017-05-10 22:23:11 +0000 | [diff] [blame] | 1 | <!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.com | 16674fa | 2017-05-10 22:23:11 +0000 | [diff] [blame] | 20 | </head> |
| 21 | <body> |
| 22 | <div id=test1> |
| 23 | This shouldn't be initially visible |
| 24 | <div>This shouldn't be initially visible</div> |
| 25 | </div> |
| 26 | <div id=test2> |
| 27 | This should be initially green |
| 28 | <div>This should be initially green</div> |
| 29 | </div> |
antti@apple.com | bebe57b2 | 2017-05-22 13:17:24 +0000 | [diff] [blame] | 30 | <script> |
| 31 | if (window.testRunner) { |
| 32 | testRunner.waitUntilDone(); |
| 33 | test2.onanimationstart = () => testRunner.notifyDone(); |
| 34 | } |
| 35 | </script> |
antti@apple.com | 16674fa | 2017-05-10 22:23:11 +0000 | [diff] [blame] | 36 | </body> |
| 37 | </html> |