tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

grid-template-rows-neutral-keyframe-002.html (1140B)


      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 minmax(10px, 1fr)';
     17        var animation = target.animate([{}, {gridTemplateRows: '30px minmax(30px, 3fr)'}], 1000);
     18        animation.pause();
     19        animation.currentTime = 500;
     20        assert_equals(getComputedStyle(target).gridTemplateRows, '20px minmax(20px, 2fr)');
     21        target.style.gridTemplateRows = '10px fit-content(10px)';
     22        assert_equals(getComputedStyle(target).gridTemplateRows, '20px minmax(30px, 3fr)');
     23      }, 'Invalidate the result for the neutral keyframe if the type of <track-size> changes.');
     24    </script>
     25  </body>
     26 </html>