css-houdini-drafts icon indicating copy to clipboard operation
css-houdini-drafts copied to clipboard

[css-properties-values-api-1] Multiple custom `@property` with the same name

Open cdoublev opened this issue 1 year ago • 0 comments

This suggests that they are equivalent to running multiple registerProperty() with the same name:

Valid @property rules result in a registered custom property, as if registerProperty() had been called with equivalent parameters.

https://drafts.css-houdini.org/css-properties-values-api/#at-property-rule

I suggest that you make it clear that @property can override a definition, which I understood from reading other issues, whereas registerProperty() can not:

If property set already contains an entry with name as its property name (compared codepoint-wise), throw an InvalidModificationError and exit this algorithm.

cdoublev avatar Oct 23 '23 07:10 cdoublev