tor-browser

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

pad-syntax.html (841B)


      1 <!DOCTYPE html>
      2 <link rel="help" href="https://drafts.csswg.org/css-counter-styles-3/#counter-style-pad">
      3 <link rel="author" href="mailto:xiaochengh@chromium.org">
      4 <script src="/resources/testharness.js"></script>
      5 <script src="/resources/testharnessreport.js"></script>
      6 <script src="support/counter-style-testcommon.js"></script>
      7 <script>
      8 function test_valid_pad(value, expected) {
      9  test_valid_counter_style_descriptor('pad', value, expected);
     10 }
     11 
     12 function test_invalid_pad(value) {
     13  test_invalid_counter_style_descriptor('pad', value);
     14 }
     15 
     16 // <integer [0,∞]> && <symbol>
     17 
     18 test_invalid_pad('10');
     19 test_invalid_pad('"X"');
     20 test_valid_pad('0 "X"');
     21 test_valid_pad('10 "X"');
     22 test_valid_pad('"X" 10', '10 "X"');
     23 test_invalid_pad('-1 "X"');
     24 test_invalid_pad('"X" -1');
     25 test_invalid_pad('10 "X" "Y"');
     26 test_invalid_pad('10 10 "X"');
     27 
     28 </script>