Skip to content

Commit

Permalink
[css-counter-styles] Explicitly test zero values for 'pad' and 'addit…
Browse files Browse the repository at this point in the history
…ive-symbols' descriptors (web-platform-tests#28665)

This would've caught I bug I made in WebKit's @counter-style implementation.
  • Loading branch information
twilco committed Apr 23, 2021
1 parent 6244abe commit 1e0d3a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Expand Up @@ -15,6 +15,7 @@

// [ <integer [0,∞]> && <symbol> ]#

test_valid_additive_symbols('0 "X"');
test_valid_additive_symbols('1 "X"');
test_valid_additive_symbols('"X" 1', '1 "X"');
test_valid_additive_symbols('5 "V", 1 "I"');
Expand Down
1 change: 1 addition & 0 deletions css/css-counter-styles/counter-style-pad-syntax.html
Expand Up @@ -17,6 +17,7 @@

test_invalid_pad('10');
test_invalid_pad('"X"');
test_valid_pad('0 "X"');
test_valid_pad('10 "X"');
test_valid_pad('"X" 10', '10 "X"');
test_invalid_pad('-1 "X"');
Expand Down

0 comments on commit 1e0d3a6

Please sign in to comment.