-
Notifications
You must be signed in to change notification settings - Fork 757
Description
4.1 Serializing Custom Properties
https://www.w3.org/TR/css-variables-1/#serializing-custom-props
Custom property names must be serialized with the casing as provided by the author.
Note: For non-custom properties, property names are restricted to the ASCII range and are ASCII case-insensitive, so implementations typically serialize the name lowercased.
Specified values of custom properties must be serialized exactly as specified by the author. Simplifications that might occur in other properties, such as dropping comments, normalizing whitespace, reserializing numeric tokens from their value, etc., must not occur.
Custom property names are not just restricted to the casing provided by the author, but also to the exact code point sequence. Unicode normalization of the name would potentially break matches elsewhere, since the requirement is identical to. This is covered for values (in the third paragraph above) but this should also be applied to the property name. I would suggest replacing this:
Custom property names must be serialized with the casing as provided by the author.
with
Custom property names must be serialized exactly as provided by the author without altering the case or Unicode normalization.