tor-browser

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

grid-template-columns-neutral-keyframe-004.html (1114B)


      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 = '10px [a] 20px [b]';
     17        var animation = target.animate([{}, {gridTemplateColumns: '30px 40px [c]'}], 1000);
     18        animation.pause();
     19        animation.currentTime = 250;
     20        assert_equals(getComputedStyle(target).gridTemplateColumns, '15px [a] 25px [b]');
     21        target.style.gridTemplateColumns = '10px 20px [d]';
     22        assert_equals(getComputedStyle(target).gridTemplateColumns, '15px 25px [d]');
     23      }, 'Invalidate the result for the neutral keyframe if the named lines change.');
     24    </script>
     25  </body>
     26 </html>