system-syntax.html (1217B)
1 <!DOCTYPE html> 2 <link rel="help" href="https://drafts.csswg.org/css-counter-styles-3/#counter-style-system"> 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_system(value) { 9 test_valid_counter_style_descriptor('system', value); 10 } 11 12 function test_invalid_system(value) { 13 test_invalid_counter_style_descriptor('system', value); 14 } 15 16 // cyclic | numeric | alphabetic | symbolic | additive | 17 // [fixed <integer>?] | [ extends <counter-style-name> ] 18 19 test_valid_system('cyclic'); 20 test_valid_system('fixed'); 21 test_valid_system('fixed 100'); 22 test_valid_system('fixed -1'); 23 test_valid_system('symbolic'); 24 test_valid_system('alphabetic'); 25 test_valid_system('numeric'); 26 test_valid_system('additive'); 27 test_valid_system('extends bar'); 28 29 test_invalid_system('float'); 30 test_invalid_system('cyclic cyclic'); 31 32 // The following are not valid counter style names 33 test_invalid_system('extends none'); 34 test_invalid_system('extends initial'); 35 test_invalid_system('extends inherit'); 36 test_invalid_system('extends unset'); 37 38 </script>