tor-browser

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

animation-delay-001-manual.html (1967B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Animations Test: animation-delay - negative value</title>
      4 <link rel="author" title="Nokia Inc." href="http://www.nokia.com">
      5 <link rel="author" title="Intel" href="http://www.intel.com">
      6 <link rel="reviewer" title="Zhiqiang Zhang" href="mailto:zhiqiang.zhang@intel.com"> <!-- 2015-03-18 -->
      7 <link rel="help" href="https://drafts.csswg.org/css-animations-1/#animation-delay">
      8 <link rel="help" href="https://drafts.csswg.org/css-animations-1/#animation-name">
      9 <link rel="help" href="https://drafts.csswg.org/css-animations-1/#animation-duration">
     10 <link rel="help" href="https://drafts.csswg.org/css-animations-1/#animation-timing-function">
     11 <meta name="flags" content="animated">
     12 <meta name="assert" content="When animation-delay is set to a negative time offset,
     13                             animation will execute as soon as it is applied
     14                             but act as if the animation had started the specified
     15                             time in the past.">
     16 <style>
     17  div {
     18    animation-timing-function: linear;
     19 
     20    height: 100px;
     21    width: 100px;
     22    position: relative;
     23  }
     24 
     25  #test-negative-delay {
     26    animation-name: test-negative-delay;
     27    animation-duration: 10s;
     28    animation-delay: -5s;
     29 
     30    background-color: blue;
     31  }
     32 
     33  #ref-no-delay {
     34    animation-name: ref-no-delay;
     35    animation-duration: 5s;
     36 
     37    background-color: yellow;
     38  }
     39 
     40  @keyframes test-negative-delay {
     41    from {
     42      left: 150px;
     43    }
     44    to {
     45      left: 0px;
     46    }
     47  }
     48 
     49  @keyframes ref-no-delay {
     50    from {
     51      left: 75px;
     52    }
     53    to {
     54      left: 0px;
     55    }
     56  }
     57 </style>
     58 <body>
     59  <p>
     60    Test passes if there are a filled blue square with 'Filler Text'
     61    and a filled yellow square with 'Filler Text', and if the two squares
     62    start moving together from right to left as soon as the page loads.
     63  </p>
     64  <div id="test-negative-delay">Filler Text</div>
     65  <div id="ref-no-delay">Filler Text</div>
     66 </body>