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

Hi,

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