tor-browser

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

speak-as-syntax.html (1118B)


      1 <!DOCTYPE html>
      2 <link rel="help" href="https://drafts.csswg.org/css-counter-styles-3/#counter-style-speak_as">
      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_speak_as(value) {
      9  test_valid_counter_style_descriptor('speak-as', value);
     10 }
     11 
     12 function test_invalid_speak_as(value) {
     13  test_invalid_counter_style_descriptor('speak-as', value);
     14 }
     15 
     16 // auto | bullets | numbers | words | spell-out | <counter-style-name>
     17 
     18 test_valid_speak_as('auto');
     19 test_valid_speak_as('bullets');
     20 test_valid_speak_as('numbers');
     21 test_valid_speak_as('words');
     22 test_valid_speak_as('spell-out');
     23 
     24 test_valid_speak_as('bar');
     25 test_valid_speak_as('spellout'); // 'spellout' is a valid counter style name
     26 
     27 test_invalid_speak_as('bullets numbers');
     28 
     29 // The following are not valid counter style names
     30 test_invalid_speak_as('none');
     31 test_invalid_speak_as('initial');
     32 test_invalid_speak_as('inherit');
     33 test_invalid_speak_as('unset');
     34 
     35 </script>