tor-browser

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

animation-shorthand-003-manual.html (1158B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Animations Test: animation shorthand - ::before</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">
      7 <meta name="flags" content="animated">
      8 <meta name="assert" content="Check that animation shorthand applies to the ::before pseudo element
      9                             and accepts time values for animation-duration and animation-delay
     10                             in order.">
     11 <style>
     12  div::before {
     13    animation: 10s 2s sample;
     14 
     15    background-color: blue;
     16    content: "Filler Text";
     17    display: block;
     18    height: 100px;
     19    width: 100px;
     20    position: relative;
     21  }
     22 
     23  @keyframes sample {
     24    from {
     25      left: 150px;
     26    }
     27    to {
     28      left: 0px;
     29    }
     30  }
     31 </style>
     32 <body>
     33  <p>
     34    Test passes if there is a filled blue square with 'Filler Text',
     35    which starts staying left about 2 seconds, and then moves from right to left
     36    and lasts for a span of 10 seconds.
     37  </p>
     38  <div></div>
     39 </body>