W3C home > Mailing lists > Public > public-css-archive@w3.org > November 2020

Re: [csswg-drafts] [css-counter-styles] Invalid @counter-style should just not define a counter style, not be ignored (#1682)

From: Xiaocheng Hu via GitHub <sysbot+gh@w3.org>
Date: Wed, 04 Nov 2020 01:13:44 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-721457424-1604452423-sysbot+gh@w3.org>

The edit work seems incomplete. The spec still gives a number of scenarios that the @counter-style rule is invalid. There are also some inconsistencies, for example:

> If the system is `cyclic`, the `symbols` descriptor must contain at least one counter symbol, or else the @counter-style rule is invalid.

> The @counter-style rule must have a valid `symbols` descriptor ... otherwise, the @counter-style does not define a counter style (but is still a valid at-rule).

Should I understand the intention as: as long as the at-rule has a correct syntax, then it's valid and appear in OM; it defines a counter style only when the required descriptors have correct values.

In other words, `@counter-style inherit {}` is invalid and shouldn't be in OM; while `@counter-style foo {}` is valid but doesn't not define a counter style.

GitHub Notification of comment by xiaochengh
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1682#issuecomment-721457424 using your GitHub account

Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 4 November 2020 01:13:46 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:22 UTC