Skip to content

[css-values] Stacked modifiers in definitions #6085

@dontcallmedom

Description

@dontcallmedom

In w3c/svgwg#642 (comment) @tabatkins indicates that the +# stacked combinator is a valid way to declare the syntax of values that can be space- or comma-separated.

Reading the Component Value Multipliers section, it's not all that clear that this is valid, or which modifiers can be stacked.

In particular, the various rules are expected to apply to types, keywords or bracketed groups - it's not clear whether a modifier applied to these still constitute a type, a keyword or a bracketed group.

There are already rules that says that the ̀{A,B}modifier can be stacked on top of#`, which kind of implies stacking is the exception not the rule.

As we're looking in reffy & webref to release the CSS syntax definitions as package, we're trying to ensure the csstree parser we're targeting as reference parser for these fragments can accommodate all the known valid CSS definitions, and so it would be useful to understand if indeed which of the stacked modifiers are indeed valid.

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