tor-browser

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

counter-increment-valid.html (1007B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <title>CSS Lists: parsing counter-increment with valid values</title>
      6 <link rel="help" href="https://drafts.csswg.org/css-lists-3/#propdef-counter-increment">
      7 <meta name="assert" content="counter-increment supports the full grammar '[ <counter-name> <integer>? ]+ | none'.">
      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 test_valid_value('counter-increment', 'none');
     15 test_valid_value('counter-increment', 'chapter', 'chapter 1');
     16 test_valid_value('counter-increment', 'section -1');
     17 test_valid_value('counter-increment', 'first -1 second third 99', 'first -1 second 1 third 99');
     18 test_valid_value('counter-increment', 'section calc(1)');
     19 test_valid_value('counter-increment', 'section calc(-2.5)');
     20 test_valid_value('counter-increment', 'section calc(10 + (5 * sign(2cqw - 10px)))');
     21 </script>
     22 </body>
     23 </html>