tor-browser

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

animation-keyframes-002-manual.html (1519B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Animations Test: @keyframes - negative percentage and higher than 100%</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-06 -->
      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/#keyframes">
      9 <meta name="flags" content="animated">
     10 <meta name="assert" content="Check that a keyframe selector specifies negative percentage values
     11                             or values higher than 100%, the keyframe will be ignored.">
     12 <style>
     13  div {
     14    animation-name: sample;
     15    animation-duration: 10s;
     16 
     17    background-color: blue;
     18    height: 100px;
     19    width: 100px;
     20  }
     21 
     22  @keyframes sample {
     23    -100% {
     24      background-color: red;
     25    }
     26    0% {
     27      background-color: blue;
     28    }
     29    30% {
     30      background-color: green;
     31    }
     32    65% {
     33      background-color: yellow;
     34    }
     35    100% {
     36      background-color: blue;
     37    }
     38    200% {
     39      background-color: red;
     40    }
     41  }
     42 </style>
     43 <body>
     44  <p>
     45    Test passes if there is a filled blue square with 'Filler Text'
     46    initially on page load, if the color of the square gradully changes
     47    in order: BLUE to GREEN to YELLOW and back to BLUE in 10 seconds,
     48    and if there is no red.
     49  </p>
     50  <div>Filler Text</div>
     51 </body>