gap-decorations-outset-neutral-keyframe-002.html (1931B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>gap decorations column-rule-inset properties support neutral keyframe</title> 6 <link rel="help" href="https://drafts.csswg.org/css-gaps-1/#outset"> 7 <meta name="assert" content="gap decorations column-rule-inset value list supports neutral keyframe."> 8 <script src="/resources/testharness.js"></script> 9 <script src="/resources/testharnessreport.js"></script> 10 <script src="/css/support/interpolation-testcommon.js"></script> 11 </head> 12 <body> 13 <div id="target"></div> 14 <script> 15 test(() => { 16 target.style.columnRuleStyle = 'solid'; 17 target.style.columnRuleEdgeInsetStart = '1px'; 18 target.style.columnRuleEdgeInsetEnd = '1px'; 19 target.style.columnRuleInteriorInsetStart = '1px'; 20 target.style.columnRuleInteriorInsetEnd = '1px'; 21 22 var animation = target.animate([{}, {columnRuleEdgeInsetStart: '11px'}], 1000); 23 animation.pause(); 24 animation.currentTime = 500; 25 assert_equals(getComputedStyle(target).columnRuleEdgeInsetStart, '6px'); 26 27 var animation2 = target.animate([{}, {columnRuleEdgeInsetEnd: '11px'}], 1000); 28 animation2.pause(); 29 animation2.currentTime = 500; 30 assert_equals(getComputedStyle(target).columnRuleEdgeInsetEnd, '6px'); 31 32 var animation3 = target.animate([{}, {columnRuleInteriorInsetStart: '11px'}], 1000); 33 animation3.pause(); 34 animation3.currentTime = 500; 35 assert_equals(getComputedStyle(target).columnRuleInteriorInsetStart, '6px'); 36 37 var animation4 = target.animate([{}, {columnRuleInteriorInsetEnd: '11px'}], 1000); 38 animation4.pause(); 39 animation4.currentTime = 500; 40 assert_equals(getComputedStyle(target).columnRuleInteriorInsetEnd, '6px'); 41 }, 'gap decorations column-rule-inset properties support neutral keyframe.'); 42 </script> 43 </body> 44 </html>