negative-syntax.html (678B)
1 <!DOCTYPE html> 2 <link rel="help" href="https://drafts.csswg.org/css-counter-styles-3/#counter-style-negative"> 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_negative(value) { 9 test_valid_counter_style_descriptor('negative', value); 10 } 11 12 function test_invalid_negative(value) { 13 test_invalid_counter_style_descriptor('negative', value); 14 } 15 16 // <symbol> <symbol>? 17 18 test_valid_negative('"X"'); 19 test_valid_negative('"X" "X"'); 20 test_invalid_negative('"X" "X" "X"'); 21 22 </script>