tor-browser

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

animation-direction-001-manual.html (1699B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Animations Test: animation-direction - alternate</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-24 -->
      7 <link rel="help" href="https://drafts.csswg.org/css-animations-1/#animation-direction">
      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-iteration-count">
     11 <meta name="flags" content="animated">
     12 <meta name="assert" content="When animation-direction is set to alternate,
     13                             animation cycle will iteration that are
     14                             odd counts are played in the normal direction,
     15                             and the animation cycle iterations that are
     16                             even counts are played in a reverse direction.">
     17 <style>
     18  div {
     19    animation-name: sample;
     20    animation-duration: 10s;
     21    animation-direction: alternate;
     22    animation-iteration-count: infinite;
     23 
     24    background-color: blue;
     25    height: 100px;
     26    width: 100px;
     27    position: relative;
     28  }
     29 
     30  @keyframes sample {
     31    from {
     32      left: 150px;
     33    }
     34    to {
     35      left: 0px;
     36    }
     37  }
     38 </style>
     39 <body>
     40  <p>
     41    Test passes if there is a filled blue square with 'Filler Text',
     42    which starts moving from right to left on the page load,
     43    and then moves from left to right. This cycle gets repeated.
     44  </p>
     45  <div>Filler Text</div>
     46 </body>