tor-browser

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

animation-duration-005-manual.html (1413B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Animations Test: animation-duration - 0s, animation-fill-mode - forwards</title>
      4 <link rel="author" title="Intel" href="http://www.intel.com">
      5 <link rel="reviewer" title="Zhiqiang Zhang" href="mailto:zhiqiang.zhang@intel.com"> <!-- 2015-05-05 -->
      6 <link rel="help" href="https://drafts.csswg.org/css-animations-1/#animation-name">
      7 <link rel="help" href="https://drafts.csswg.org/css-animations-1/#animation-duration">
      8 <link rel="help" href="https://drafts.csswg.org/css-animations-1/#animation-fill-mode">
      9 <meta name="flags" content="animated">
     10 <meta name="assert" content="When animation-duration is set to 0s (zero seconds),
     11                             and 'animation-fill-mode' is set to 'forwards',
     12                             the last frame of the animation will be displayed.">
     13 <style>
     14  div {
     15    height: 100px;
     16    width: 100px;
     17    position: absolute;
     18  }
     19 
     20  #test {
     21    animation-name: sample;
     22    animation-duration: 0s;
     23    animation-fill-mode: forwards;
     24 
     25    background-color: blue;
     26  }
     27 
     28  #ref {
     29    background-color: red;
     30    left: 150px;
     31  }
     32 
     33  @keyframes sample {
     34    from {
     35      left: 0px;
     36    }
     37    to {
     38      left: 150px;
     39    }
     40  }
     41 </style>
     42 <body>
     43  <p>
     44    Test passes if there is a filled blue with 'Filler Text',
     45    and without animation, and if there is no red.
     46  </p>
     47  <div id="ref"></div>
     48  <div id="test">Filler Text</div>
     49 </body>