tor-browser

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

animation-name-003-manual.html (1313B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Animations Test: animation-name - none</title>
      4 <link rel="author" title="Nokia Inc." href="http://www.nokia.com">
      5 <link rel="author" title="Intel" href="http://www.intel.com">
      6 <link rel="reviewer" title="Zhiqiang Zhang" href="mailto:zhiqiang.zhang@intel.com"> <!-- 2015-05-06 -->
      7 <link rel="help" href="https://drafts.csswg.org/css-animations-1/#animation-name">
      8 <link rel="help" href="https://drafts.csswg.org/css-animations-1/#animation-duration">
      9 <meta name="flags" content="animated">
     10 <meta name="assert" content="Check that animation-name is set to none, there will be no animation.">
     11 <style>
     12  div {
     13    animation-name: none;
     14    animation-duration: 8s;
     15 
     16    background-color: blue;
     17    height: 100px;
     18    width: 100px;
     19    position: relative;
     20  }
     21 
     22  @keyframes sample {
     23    from {
     24      left: 150px;
     25    }
     26    to {
     27      left: 0px;
     28    }
     29  }
     30 </style>
     31 <body>
     32  <p>
     33    Test passes if there is a filled blue square with 'Filler Text',
     34    which starts staying left about 2 seconds, then moves from right to left.
     35  </p>
     36  <div>Filler Text</div>
     37  <script>
     38    setTimeout(setAnimationName, 2000);
     39 
     40    function setAnimationName () {
     41      var div = document.getElementsByTagName("div");
     42      div[0].style.animationName = "sample";
     43    }
     44  </script>
     45 </body>