tor-browser

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

transition-valid.html (1331B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <title>CSS Transitions: parsing transition with valid values</title>
      6 <link rel="help" href="https://drafts.csswg.org/css-transitions/#transition-shorthand-property">
      7 <meta name="assert" content="transition supports the full grammar '<single-transition> #'.">
      8 <script src="/resources/testharness.js"></script>
      9 <script src="/resources/testharnessreport.js"></script>
     10 <script src="/css/support/parsing-testcommon.js"></script>
     11 </head>
     12 <body>
     13 <script>
     14 // <single-transition> = [ none | <single-transition-property> ] ||
     15 // <time> || <easing-function> || <time>
     16 test_valid_value("transition", "1s");
     17 test_valid_value("transition", "cubic-bezier(0, -2, 1, 3)");
     18 test_valid_value("transition", "1s -3s");
     19 test_valid_value("transition", "none");
     20 test_valid_value("transition", "top");
     21 
     22 test_valid_value("transition", "1s -3s cubic-bezier(0, -2, 1, 3) top", "top 1s cubic-bezier(0, -2, 1, 3) -3s");
     23 test_valid_value("transition", "1s -3s, cubic-bezier(0, -2, 1, 3) top", "1s -3s, top cubic-bezier(0, -2, 1, 3)");
     24 
     25 test_valid_value("transition", "all");
     26 test_valid_value("transition", "all 1s", "1s");
     27 
     28 test_valid_value("transition", "initial", "initial");
     29 
     30 // TODO: Add test with a single negative time.
     31 // TODO: Add test with a single timing-function keyword.
     32 </script>
     33 </body>
     34 </html>