outline-018

non interpolable outline-style animation

WeasyPrint

This browser

Flags
script

Source

 1 <!DOCTYPE html>
 2 <html><head><meta charset="utf-8">
 3 <title>CSS Basic User Interface Test: non interpolable outline-style animation</title>
 4 <link href="http://florian.rivoal.net" rel="author" title="Florian Rivoal">
 5 <link href="https://drafts.csswg.org/css-ui-3/#propdef-outline-style" rel="help">
 6 <link href="https://www.w3.org/TR/web-animations-1/#dom-animatable-animate" rel="help">
 7 <script src="/resources/testharness.js"></script>
 8 <script src="/resources/testharnessreport.js"></script>
 9 <style>
10 @keyframes outline-anim {
11   from {
12     outline: solid 1px black;
13   }
14   to {
15     outline: dotted 1px black;
16   }
17 }
18 
19 #test {
20   animation: outline-anim 3s -1.5s paused linear;
21   outline: solid 1px black;
22 }
23 </style>
24 </head><body>
25   <div id="test"></div>
26   <div id="log"></div>
27 
28   <script>
29     test(
30       function(){
31         var test = document.getElementById("test");
32 
33         test.style.animation = "outline-anim 3s 0s paused linear"
34         assert_equals(getComputedStyle(test).outlineStyle, 'solid');
35         test.style.animation = "outline-anim 3s -1s paused linear"
36         assert_equals(getComputedStyle(test).outlineStyle, 'solid');
37         test.style.animation = "outline-anim 3s -2s paused linear"
38         assert_equals(getComputedStyle(test).outlineStyle, 'dotted');
39         test.style.animation = "outline-anim 3s 0s paused reverse-linear"
40         assert_equals(getComputedStyle(test).outlineStyle, 'dotted');
41       }, "outline-style is animated as a discrete type");
42 </script>
43 
44 </body></html>