Skip to content

[css-counter-styles] system: extends decimal; fallback: decimal; speak-as: decimal #1285

@SimonSapin

Description

@SimonSapin

The system, fallback, and decimal descriptors all use <counter-style-name> in their value grammar definition, linking to:

https://drafts.csswg.org/css-counter-styles/#typedef-counter-style-name

The general form of an @counter-style rule is:

@counter-style <counter-style-name> { <declaration-list> }

where <counter-style-name> is a <custom-ident>.
If a counter style’s name is an ASCII case-insensitive match for "decimal" or "none", the @counter-style rule is invalid.

It is unclear whether the exclusion of "decimal" and "none" is part of the definition of the <counter-style-name> type, and therefore also applies when this type is used in descriptors, or whether that only applies to @counter-style rules.

Being able to use "decimal" makes sense. In fact that’s even the initial value, in the case of fallback. Using none less so. Maybe a different behavior is desirable for these two keywords?

By the way, why is "none" excluded when for example "inside" isn’t?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions