Skip to content

[css-properties-values-api] Allow comma-separated names in @property prelude#1171

Open
CGQAQ wants to merge 2 commits into
w3c:mainfrom
CGQAQ:at-property-comma-separated-names
Open

[css-properties-values-api] Allow comma-separated names in @property prelude#1171
CGQAQ wants to merge 2 commits into
w3c:mainfrom
CGQAQ:at-property-comma-separated-names

Conversation

@CGQAQ
Copy link
Copy Markdown

@CGQAQ CGQAQ commented Apr 3, 2026

Summary

Per CSSWG resolution, allow the @property rule prelude to accept a comma-separated list of custom property names, so multiple properties sharing the same descriptors can be registered in a single rule.

  • Updated grammar from <<custom-property-name>> to <<custom-property-name>>#
  • Updated prose for multi-name semantics and duplicate handling
  • Added FrozenArray<CSSOMString> names attribute to CSSPropertyRule
  • Updated serialization algorithm to handle multiple names
  • Added Example 3 demonstrating the feature
  • Added changelog entry

Resolves w3c/csswg-drafts#7523

…roperty prelude

Per CSSWG resolution in w3c/csswg-drafts#7523, allow the @Property
rule prelude to accept a comma-separated list of custom property names,
so multiple properties sharing the same descriptors can be registered
in a single rule.

- Updated grammar to <<custom-property-name>>#
- Updated prose for multi-name semantics and duplicate handling
- Added FrozenArray<CSSOMString> names attribute to CSSPropertyRule
- Updated serialization to handle multiple names
- Added Example 3 demonstrating the feature
- Added changelog entry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[css-properties-values-api] Shorthand for custom property declaration

2 participants