tor-browser

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

gap-animation-003.html (1190B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Box Alignment Test: Default gap test animation</title>
      4 <link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
      5 <link rel="help" href="https://www.w3.org/TR/css-align-3/#column-row-gap">
      6 <link rel="help" href="https://www.w3.org/TR/css-animations-1/#keyframes">
      7 <meta name="assert" content="This test checks that the default value for gap property, which is 'normal', is not interpolable.">
      8 <script src="/resources/testharness.js"></script>
      9 <script src="/resources/testharnessreport.js"></script>
     10 <style>
     11  @keyframes gap-to-100 {
     12    to { gap: 100px; }
     13  }
     14 
     15  #target {
     16    animation-name: gap-to-100;
     17    animation-duration: 2s;
     18    animation-delay: -1s;
     19    animation-play-state: paused;
     20  }
     21 </style>
     22 <body>
     23  <div id="target"></div>
     24  <div id="log"></div>
     25 
     26  <script>
     27    test(
     28      function(){
     29        var target = document.getElementById("target");
     30        assert_equals(getComputedStyle(target).gap, "100px");
     31        assert_equals(getComputedStyle(target).rowGap, "100px");
     32        assert_equals(getComputedStyle(target).columnGap, "100px");
     33      }, "Default gap is not interpolable");
     34  </script>
     35 </body>