@@ -206,13 +206,13 @@ and return the result.
206
206
let |whole value| be the parsed result.
207
207
208
208
<div class='note'>
209
- The behavior of custom properties are different when modified via JavaScript
209
+ The behavior of custom properties are different when modified via JavaScript
210
210
than when defined in style sheets.
211
211
212
212
When a custom property is defined with an invalid syntax in a style sheet,
213
213
then the value is recorded as "unset", to avoid having to reparse every style sheet when a custom property is registered.
214
-
215
- Conversely, when a custom property is modified via the JavaScript API,
214
+
215
+ Conversely, when a custom property is modified via the JavaScript API,
216
216
any parse errors are propagated to the progamming environment via a {{TypeError}} .
217
217
This allows more immediate feedback of errors to developers.
218
218
</div>
@@ -1676,6 +1676,10 @@ The ordering of a [=type=]’s entries always matches this [=base type=] orderin
1676
1676
The <dfn export for=CSSNumericValue>percent hint</dfn>
1677
1677
is either null or a [=base type=] other than "percent".
1678
1678
1679
+ Note: As new unit types are added to CSS,
1680
+ they'll be added to this list of [=base types=] ,
1681
+ and to the CSS [=math functions=] .
1682
+
1679
1683
<div algorithm>
1680
1684
To <dfn export for="CSSNumericValue" lt="create a type|creating a type">create a type</dfn> from a string |unit|,
1681
1685
follow the appropriate branch of the following:
0 commit comments