w3c / css-houdini-drafts

Mirror of https://hg.css-houdini.org/drafts
https://drafts.css-houdini.org/
Other
1.84k stars 141 forks source link

[css-properties-values-api] Add <string> as a supported syntax name #1103

Closed lilles closed 6 months ago

lilles commented 1 year ago

We should add "<string>" as a valid syntax for custom property registration:

https://www.w3.org/TR/css-properties-values-api-1/#supported-names

Chrome got a bug report that "<string>" was expected to work for registered custom properties to be used in the content property.

lilles commented 1 year ago

@andruud @tabatkins does that sound good?

tabatkins commented 1 year ago

Oh, huh, that's a weird omission. Yes, absolutely we should allow strings.

SebastianZ commented 1 year ago

For reference, Mozilla already added parsing <string> today.

Sebastian