@@ -105,7 +105,7 @@ <h2 id='defining-variables'>
105105 </ div >
106106
107107 Unlike other CSS properties,
108- custom properties are < strong > case-sensitive</ strong > .
108+ custom property names are < strong > case-sensitive</ strong > .
109109 The "var-" prefix < strong > must</ strong > be written in lower-case.
110110
111111 < div class ='example '>
@@ -130,9 +130,17 @@ <h2 id='defining-variables'>
130130 a "!important" that's not at the end,
131131 or invalid tokens (such as BAD_STRING and BAD_URL).
132132
133- Note: Custom properties can contain a trailing ''!important'',
134- but this is automatically removed from the property's value by the CSS parser,
135- and makes the custom property "important" in the CSS cascade.
133+ < p class ='note '>
134+ Custom properties can contain a trailing ''!important'',
135+ but this is automatically removed from the property's value by the CSS parser,
136+ and makes the custom property "important" in the CSS cascade.
137+
138+ Further, the value of a custom property must retain its original author-given casing,
139+ unlike most CSS values which can be safely lower-cased
140+ (because most of CSS is case-insensitive in the ASCII range).
141+ (This requirement does not apply when a custom property's value
142+ is substituted into another property
143+ via a variable.)
136144
137145 < div class ='example '>
138146 For example, the following is a valid custom property:
@@ -537,6 +545,8 @@ <h3 id='the-cssstyledeclaration-interface'>
537545 }
538546 </ pre >
539547
548+
549+
540550< h4 id ='serializing-custom-props '>
541551Serializing Custom Properties</ h4 >
542552
0 commit comments