Skip to content

Commit 0000e8f

Browse files
committed
[css-typed-om] Add note about new unit types. Fixes w3c#734.
1 parent d9e8a3d commit 0000e8f

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

css-typed-om/Overview.bs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,13 +206,13 @@ and return the result.
206206
let |whole value| be the parsed result.
207207

208208
<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
210210
than when defined in style sheets.
211211

212212
When a custom property is defined with an invalid syntax in a style sheet,
213213
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,
216216
any parse errors are propagated to the progamming environment via a {{TypeError}}.
217217
This allows more immediate feedback of errors to developers.
218218
</div>
@@ -1676,6 +1676,10 @@ The ordering of a [=type=]’s entries always matches this [=base type=] orderin
16761676
The <dfn export for=CSSNumericValue>percent hint</dfn>
16771677
is either null or a [=base type=] other than "percent".
16781678

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+
16791683
<div algorithm>
16801684
To <dfn export for="CSSNumericValue" lt="create a type|creating a type">create a type</dfn> from a string |unit|,
16811685
follow the appropriate branch of the following:

0 commit comments

Comments
 (0)