Skip to content
New issue

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

CSS counter-increment and counter-reset should be ignored for elements with display: none #1385

Closed
MurakamiShinyu opened this issue Oct 11, 2024 · 1 comment · Fixed by #1395

Comments

@MurakamiShinyu
Copy link
Member

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.

Pseudo-elements that are not generated also cannot increment or reset a counter.

Test cases:

Test with Vivliostyle Viewer (v2.30.4):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant