tor-browser

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

animation-fill-mode-004-manual.html (1358B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Animations Test: animation-fill-mode - both</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-delay">
      9 <link rel="help" href="https://drafts.csswg.org/css-animations-1/#animation-fill-mode">
     10 <meta name="flags" content="animated">
     11 <meta name="assert" content="Check if animation-fill-mode is set to both,
     12                             the effects of both 'forwards' and 'backwards' will apply.">
     13 <style>
     14  div {
     15    animation-name: sample;
     16    animation-duration: 5s;
     17    animation-delay: 5s;
     18    animation-fill-mode: both;
     19 
     20    background-color: blue;
     21    height: 100px;
     22    width: 100px;
     23    position: relative;
     24  }
     25  @keyframes sample {
     26    from {
     27      background-color: yellow;
     28    }
     29    to {
     30      background-color: green;
     31    }
     32  }
     33 </style>
     34 <body>
     35  <p>
     36    Test passes if there is a filled color square with 'Filler Text',
     37    whose color gradually changes in the order:
     38    YELLOW to GREEN.
     39  </p>
     40  <div>Filler Text</div>
     41 </body>