blob: a5549d5ff55b710af0a1b429664681be988797d1 [file] [log] [blame]
chunywangb489d632015-04-03 08:22:231<!DOCTYPE html>
2<meta charset="utf-8">
3<title>CSS Animations Test: animation-delay - inherit keyword</title>
4<link rel="author" title="Intel" href="http://www.intel.com">
Zhiqiang Zhangbd78ac72015-05-07 08:35:405<link rel="reviewer" title="Zhiqiang Zhang" href="mailto:zhiqiang.zhang@intel.com"> <!-- 2015-05-07 -->
Peter Linssa6e041e2015-08-20 02:38:016<link rel="help" href="https://drafts.csswg.org/css-animations-1/#animation-delay">
7<link rel="help" href="https://drafts.csswg.org/css-animations-1/#animation-name">
8<link rel="help" href="https://drafts.csswg.org/css-animations-1/#animation-duration">
9<link rel="help" href="https://drafts.csswg.org/css-animations-1/#values">
chunywangb489d632015-04-03 08:22:2310<meta name="flags" content="animated">
Zhiqiang Zhangbd78ac72015-05-07 08:35:4011<meta name="assert" content="Check that animation-delay property accepts 'inherit' keyword.">
chunywangb489d632015-04-03 08:22:2312<style>
Zhiqiang Zhangbd78ac72015-05-07 08:35:4013 #container {
chunywangb489d632015-04-03 08:22:2314 animation-delay: 5s;
15 }
16
Zhiqiang Zhangbd78ac72015-05-07 08:35:4017 #test {
chunywangb489d632015-04-03 08:22:2318 animation-name: sample;
19 animation-duration: 5s;
20 animation-delay: inherit;
21
22 background-color: blue;
23 height: 100px;
24 width: 100px;
25 position: relative;
26 }
27
28 @keyframes sample {
29 from {
30 left: 150px;
31 }
32 to {
33 left: 0px;
34 }
35 }
36</style>
37<body>
38 <p>
39 Test passes if there is a filled blue square with 'Filler Text',
Zhiqiang Zhangbd78ac72015-05-07 08:35:4040 which starts staying left for about 5 seconds, and then moves
41 from right to left and lasts for a span of 5 seconds.
chunywangb489d632015-04-03 08:22:2342 </p>
Zhiqiang Zhangbd78ac72015-05-07 08:35:4043 <div id="container">
44 <div id="test">Filler Text</div>
chunywangb489d632015-04-03 08:22:2345 </div>
46</body>
47