tor-browser

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

grid-template-columns-neutral-keyframe-003.html (1227B)


      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 = '200px';
     17        var animation = target.animate([{}, {gridTemplateColumns: '30px 300px'}], 1000);
     18        animation.pause();
     19        animation.currentTime = 500;
     20        assert_equals(getComputedStyle(target).gridTemplateColumns, '30px 300px');
     21        target.style.gridTemplateColumns = '20px 200px';
     22        assert_equals(getComputedStyle(target).gridTemplateColumns, '25px 250px');
     23        target.style.gridTemplateColumns = '200px';
     24        assert_equals(getComputedStyle(target).gridTemplateColumns, '30px 300px');
     25      }, 'Invalidate the result for the neutral keyframe if the size of the list changes.');
     26    </script>
     27  </body>
     28 </html>