grid-template-columns-neutral-keyframe-001.html (1108B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>grid-template-columns neutral keyframe</title> 6 <link rel="help" href="https://drafts.csswg.org/css-grid/#track-sizing"> 7 <meta name="assert" content="grid-template-columns 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.gridTemplateColumns = '1fr 200px'; 17 var animation = target.animate([{}, {gridTemplateColumns: '30px 300px'}], 1000); 18 animation.pause(); 19 animation.currentTime = 500; 20 assert_equals(getComputedStyle(target).gridTemplateColumns, '30px 250px'); 21 target.style.gridTemplateColumns = '20px 200px'; 22 assert_equals(getComputedStyle(target).gridTemplateColumns, '25px 250px'); 23 }, 'Invalidate the result for the neutral keyframe if the value of the <track-breadth> changes.'); 24 </script> 25 </body> 26 </html>