14 background-color: blue;
16 #target.animated:after {
17 -webkit-animation: anim
1ms forwards;
18 animation: anim
1ms forwards;
20 @-webkit-keyframes anim {
43 if (window
.testRunner
) {
44 testRunner
.dumpAsText();
45 testRunner
.waitUntilDone();
49 var target
= document
.getElementById('target');
50 target
.addEventListener('webkitAnimationEnd', completeTest
);
51 target
.classList
.add('animated');
54 function test(style
, property
, expected
) {
55 var pass
= style
[property
] === expected
;
56 document
.getElementById('log').innerHTML
+=
57 (pass
? 'PASS' : 'FAIL') + ': ' + property
+ ' was ' + (pass
? '' : 'not ') + expected
+ '<br>';
60 function completeTest(message
) {
61 var style
= getComputedStyle(document
.getElementById('target'), ':after');
62 test(style
, 'left', '100px');
63 test(style
, 'display', 'block');
64 if (window
.testRunner
) {
65 testRunner
.notifyDone();
72 Tests that an attempt to animate the display property of a pseudo element is
73 ignored, and that the animation proceeds as expected.
75 <div id=
"target"></div>