Skip to content

[css-counter-styles-3] @counter-style declared with extended system and *-symbols #9258

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

Closed
cdoublev opened this issue Aug 29, 2023 · 0 comments · Fixed by #11883
Closed

[css-counter-styles-3] @counter-style declared with extended system and *-symbols #9258

cdoublev opened this issue Aug 29, 2023 · 0 comments · Fixed by #11883
Labels

Comments

@cdoublev
Copy link
Collaborator

cdoublev commented Aug 29, 2023

https://drafts.csswg.org/css-counter-styles-3/#valdef-counter-style-system-extends

If a @counter-style uses the extends system, it must not contain a symbols or additive-symbols descriptor, or else the @counter-style rule is invalid.

In Chrome/FF (at least), the rule is valid and does not define a counter style.

<style>
  @counter-style counter {
    system: extends cyclic;
    symbols: foo bar;
  }
  ul { list-style: counter }
</style>
<ul>
  <li>one</li> <!-- 1. one-->
  <li>two</li> <!-- 2. two -->
</ul>
<script>
  document.styleSheets[0].cssRules.length // 2
</script>

At least, considering their related issues/resolutions, I think invalid may be an oversight in 4068d10 / ba2a8cb.

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

Successfully merging a pull request may close this issue.

1 participant