tor-browser

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

animation-iteration-count-007-manual.html (1209B)


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