grid-template-rows-neutral-keyframe-004.html (1093B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>grid-template-rows neutral keyframe</title> 6 <link rel="help" href="https://drafts.csswg.org/css-grid/#track-sizing"> 7 <meta name="assert" content="grid-template-rows 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.gridTemplateRows = '10px [a] 20px [b]'; 17 var animation = target.animate([{}, {gridTemplateRows: '30px 40px [c]'}], 1000); 18 animation.pause(); 19 animation.currentTime = 250; 20 assert_equals(getComputedStyle(target).gridTemplateRows, '15px [a] 25px [b]'); 21 target.style.gridTemplateRows = '10px 20px [d]'; 22 assert_equals(getComputedStyle(target).gridTemplateRows, '15px 25px [d]'); 23 }, 'Invalidate the result for the neutral keyframe if the named lines change.'); 24 </script> 25 </body> 26 </html>