We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
display: none
CSS counter-increment and counter-reset should be ignored for elements with display: none.
CSS spec: https://drafts.csswg.org/css2/#undisplayed-counters
12.4.3. Counters in elements with 'display: none'
An element that is not displayed (display set to none) cannot increment or reset a counter.
display
none
Pseudo-elements that are not generated also cannot increment or reset a counter.
Test cases:
Test with Vivliostyle Viewer (v2.30.4):
https://vivliostyle.github.io/viewer/v2.30.4/#src=https://github.com/web-platform-tests/wpt/blob/master/css/CSS2/lists/counter-increment-display-001.xht
Result (wrong):
Test passes if there is the number '0' below. 10
Test passes if there is the number '0' below.
10
https://vivliostyle.github.io/viewer/v2.30.4/#src=https://github.com/web-platform-tests/wpt/blob/master/css/CSS2/lists/counter-increment-display-002.xht
Test passes if the numbers '1' and '2' are below. 1 3
Test passes if the numbers '1' and '2' are below.
1 3
https://vivliostyle.github.io/viewer/v2.30.4/#src=https://github.com/web-platform-tests/wpt/blob/master/css/CSS2/lists/counter-increment-display-004.xht
Test passes if the numbers '1', '2' and '3' are below. 1 3 4
Test passes if the numbers '1', '2' and '3' are below.
1 3 4
https://vivliostyle.github.io/viewer/v2.30.4/#src=https://github.com/web-platform-tests/wpt/blob/master/css/CSS2/lists/counter-increment-not-generated-001.xht
https://vivliostyle.github.io/viewer/v2.30.4/#src=https://github.com/web-platform-tests/wpt/blob/master/css/CSS2/lists/counter-reset-display-001.xht
Test passes if there is the number '0' below. -10
-10
https://vivliostyle.github.io/viewer/v2.30.4/#src=https://github.com/web-platform-tests/wpt/blob/master/css/CSS2/lists/counter-reset-not-generated-001.xht
The text was updated successfully, but these errors were encountered:
5ed23e8
Fixed in PR #1395.
Test:
Sorry, something went wrong.
MurakamiShinyu
Successfully merging a pull request may close this issue.
CSS counter-increment and counter-reset should be ignored for elements with
display: none
.CSS spec: https://drafts.csswg.org/css2/#undisplayed-counters
Test cases:
Test with Vivliostyle Viewer (v2.30.4):
https://vivliostyle.github.io/viewer/v2.30.4/#src=https://github.com/web-platform-tests/wpt/blob/master/css/CSS2/lists/counter-increment-display-001.xht
Result (wrong):
https://vivliostyle.github.io/viewer/v2.30.4/#src=https://github.com/web-platform-tests/wpt/blob/master/css/CSS2/lists/counter-increment-display-002.xht
Result (wrong):
https://vivliostyle.github.io/viewer/v2.30.4/#src=https://github.com/web-platform-tests/wpt/blob/master/css/CSS2/lists/counter-increment-display-004.xht
Result (wrong):
https://vivliostyle.github.io/viewer/v2.30.4/#src=https://github.com/web-platform-tests/wpt/blob/master/css/CSS2/lists/counter-increment-not-generated-001.xht
Result (wrong):
https://vivliostyle.github.io/viewer/v2.30.4/#src=https://github.com/web-platform-tests/wpt/blob/master/css/CSS2/lists/counter-reset-display-001.xht
Result (wrong):
https://vivliostyle.github.io/viewer/v2.30.4/#src=https://github.com/web-platform-tests/wpt/blob/master/css/CSS2/lists/counter-reset-not-generated-001.xht
Result (wrong):
The text was updated successfully, but these errors were encountered: