tor-browser

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

gap-decorations-outset-neutral-keyframe-001.html (1874B)


      1 <!DOCTYPE html>
      2 <html>
      3  <head>
      4    <meta charset="utf-8">
      5    <title>gap decorations row-rule-inset properties neutral keyframe</title>
      6    <link rel="help" href="https://drafts.csswg.org/css-gaps-1/#outset">
      7    <meta name="assert" content="gap decorations row-rule-inset value list 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.rowRuleStyle = 'solid';
     17        target.style.rowRuleEdgeInsetStart = '1px';
     18        target.style.rowRuleEdgeInsetEnd = '1px';
     19        target.style.rowRuleInteriorInsetStart = '1px';
     20        target.style.rowRuleInteriorInsetEnd = '1px';
     21        var animation = target.animate([{}, {rowRuleEdgeInsetStart: '11px'}], 1000);
     22        animation.pause();
     23        animation.currentTime = 500;
     24        assert_equals(getComputedStyle(target).rowRuleEdgeInsetStart, '6px');
     25 
     26        var animation2 = target.animate([{}, {rowRuleEdgeInsetEnd: '11px'}], 1000);
     27        animation2.pause();
     28        animation2.currentTime = 500;
     29        assert_equals(getComputedStyle(target).rowRuleEdgeInsetEnd, '6px');
     30 
     31        var animation3 = target.animate([{}, {rowRuleInteriorInsetStart: '11px'}], 1000);
     32        animation3.pause();
     33        animation3.currentTime = 500;
     34        assert_equals(getComputedStyle(target).rowRuleInteriorInsetStart, '6px');
     35 
     36        var animation4 = target.animate([{}, {rowRuleInteriorInsetEnd: '11px'}], 1000);
     37        animation4.pause();
     38        animation4.currentTime = 500;
     39        assert_equals(getComputedStyle(target).rowRuleInteriorInsetEnd, '6px');
     40      }, 'gap decorations row-rule-inset properties support neutral keyframe.');
     41    </script>
     42  </body>
     43 </html>