gap-decorations-width-neutral-keyframe-003.html (1085B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>gap decorations row-rule-width neutral keyframe</title> 6 <link rel="help" href="https://drafts.csswg.org/css-gaps-1/#column-row-rule-width"> 7 <meta name="assert" content="gap decorations row-rule-width with repeaters 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.rowRuleStyle = 'solid'; 17 target.style.rowRuleWidth = 'repeat(2, 20px 20px) repeat(1, 30px)'; 18 var animation = target.animate([{}, {rowRuleWidth: 'repeat(2, 40px 40px) repeat(1, 40px)'}], 1000); 19 animation.pause(); 20 animation.currentTime = 500; 21 assert_equals(getComputedStyle(target).rowRuleWidth, '30px 30px 30px 30px 35px'); 22 }, 'gap decorations row-rule-width with repeaters supports neutral keyframe.'); 23 </script> 24 </body> 25 </html>