blob: 9eaab1448c2c6620a09afe38cc98fb69330b5899 [file] [log] [blame]
yunxiaoxie73a488b2015-03-06 09:12:481<!DOCTYPE html>
2<meta charset="utf-8">
3<title>CSS Animations Test: animation-delay - ::after</title>
4<link rel="author" title="Intel" href="http://www.intel.com">
Zhiqiang Zhanged2f6842015-03-18 08:22:375<link rel="reviewer" title="Zhiqiang Zhang" href="mailto:zhiqiang.zhang@intel.com"> <!-- 2015-03-18 -->
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">
chunywangce8ec3a2015-03-13 05:58:059<meta name="flags" content="animated">
Zhiqiang Zhanged2f6842015-03-18 08:22:3710<meta name="assert" content="Check that animation-delay applies to the ::after pseudo element.">
yunxiaoxie73a488b2015-03-06 09:12:4811<style>
Zhiqiang Zhanged2f6842015-03-18 08:22:3712 div::after {
yunxiaoxie73a488b2015-03-06 09:12:4813 animation-name: sample;
Zhiqiang Zhanged2f6842015-03-18 08:22:3714 animation-duration: 5s;
15 animation-delay: 5s;
16
17 background-color: blue;
18 content: "Filler Text";
19 display: block;
20 height: 100px;
21 width: 100px;
chunywangce8ec3a2015-03-13 05:58:0522 position: relative;
yunxiaoxie73a488b2015-03-06 09:12:4823 }
Zhiqiang Zhanged2f6842015-03-18 08:22:3724
yunxiaoxie73a488b2015-03-06 09:12:4825 @keyframes sample {
26 from {
Zhiqiang Zhanged2f6842015-03-18 08:22:3727 left: 150px;
yunxiaoxie73a488b2015-03-06 09:12:4828 }
29 to {
Zhiqiang Zhanged2f6842015-03-18 08:22:3730 left: 0px;
yunxiaoxie73a488b2015-03-06 09:12:4831 }
32 }
33</style>
34<body>
Zhiqiang Zhanged2f6842015-03-18 08:22:3735 <p>
36 Test passes if there is a filled blue square with 'Filler Text',
37 which starts moving from right to left after about 5 seconds
38 from the time the page is loaded.
39 </p>
40 <div></div>
yunxiaoxie73a488b2015-03-06 09:12:4841</body>
42