tor-browser

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

animation-timing-function-010-manual.html (1962B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Animations Test: animation-timing-function - steps with parameters (<number>, end)</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-07 -->
      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 <link rel="help" href="https://drafts.csswg.org/css-animations-1/#animation-timing-function">
     10 <meta name="flags" content="animated">
     11 <meta name="assert" content="When animation-timing-function is set to steps with paramenters
     12                             (<number>, end), animation will be defined by the number that divides
     13                             the domain of operation into equally size intervals, evey time the changes
     14                             happens at the end of the interval.">
     15 <style>
     16  div {
     17    float: left;
     18    height: 100px;
     19    width: 100px;
     20    position: absolute;
     21  }
     22 
     23  #test-step-end {
     24    animation-name: sample;
     25    animation-duration: 10s;
     26    animation-fill-mode: forwards;
     27    animation-timing-function: steps(3, end);
     28 
     29    background-color: blue;
     30  }
     31 
     32  #ref-1 {
     33    background-color: yellow;
     34    left: 200px;
     35  }
     36 
     37  #ref-2 {
     38    background-color: green;
     39    left: 100px;
     40  }
     41 
     42  #ref-3 {
     43    background-color: red;
     44    left: 0px;
     45  }
     46 
     47  @keyframes sample {
     48    from {
     49      left: 300px;
     50    }
     51    to {
     52      left: 0px;
     53    }
     54  }
     55 </style>
     56 <body>
     57  <p>
     58    Test passes if there are a filled square with 'Filler Text',
     59    which jumps three times from right to left and orderly covers
     60    the filled YELLOW, GREEN and RED squares.
     61  </p>
     62  <div id="ref-1"></div>
     63  <div id="ref-2"></div>
     64  <div id="ref-3"></div>
     65  <div id="test-step-end">Filler Text</div>
     66 </body>