Skip to content

Commit 737a066

Browse files
committed
[css-variables] Fix the custom property serialization rule to match new casing decision.
1 parent 9b559e9 commit 737a066

2 files changed

Lines changed: 3 additions & 7 deletions

File tree

css-variables/Overview.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -732,9 +732,8 @@ <h3 id=the-cssstyledeclaration-interface><span class=secno>4.1. </span>
732732
<h4 id=serializing-custom-props><span class=secno>4.1.1. </span>
733733
Serializing Custom Properties</h4>
734734

735-
<p> When a custom property name is serialized, the "var-" prefix must be
736-
serialized in lower-case, as a literal "var-". The rest of the property
737-
name must be serialized in the original case.
735+
<p> Custom property names must be serialized exactly as provided by the
736+
author.
738737

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

css-variables/Overview.src.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -575,10 +575,7 @@ <h4 id='serializing-custom-props'>
575575
Serializing Custom Properties</h4>
576576

577577
<p>
578-
When a custom property name is serialized,
579-
the "var-" prefix must be serialized in lower-case,
580-
as a literal "var-".
581-
The rest of the property name must be serialized in the original case.
578+
Custom property names must be serialized exactly as provided by the author.
582579

583580
<h3 id='the-cssvariablesdeclaration-interface'>
584581
The <code>CSSVariablesDeclaration</code> Interface</h3>

0 commit comments

Comments
 (0)