Skip to content

Commit b58957a

Browse files
committed
[css-variables] Clarify that custom property names just need to be case-preserved.
1 parent c78f1c4 commit b58957a

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

css-variables/Overview.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -698,8 +698,12 @@ <h3 id=the-cssstyledeclaration-interface><span class=secno>4.1. </span>
698698
<h4 id=serializing-custom-props><span class=secno>4.1.1. </span>
699699
Serializing Custom Properties</h4>
700700

701-
<p> Custom property names must be serialized exactly as provided by the
702-
author.
701+
<p> Custom property names must be serialized with the casing as provided by
702+
the author.
703+
704+
<p class=note> Ordinarily, property name are restricted to the ASCII range
705+
and are case-insensitive, so implementations typically serialize the name
706+
lowercased.
703707

704708
<h3 id=the-cssvariablesdeclaration-interface><span class=secno>4.2. </span>
705709
The <a

css-variables/Overview.src.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,11 @@ <h3 id='the-cssstyledeclaration-interface'>
479479
<h4 id='serializing-custom-props'>
480480
Serializing Custom Properties</h4>
481481

482-
Custom property names must be serialized exactly as provided by the author.
482+
Custom property names must be serialized with the casing as provided by the author.
483+
484+
<p class='note'>
485+
Ordinarily, property name are restricted to the ASCII range and are case-insensitive,
486+
so implementations typically serialize the name lowercased.
483487

484488
<h3 id='the-cssvariablesdeclaration-interface'>
485489
The <code>CSSVariablesDeclaration</code> Interface</h3>

0 commit comments

Comments
 (0)