Skip to content

Commit 4fd00fb

Browse files
authored
Add type checking to CSSNumericValue.parse (w3c#1065)
1 parent a90bdcc commit 4fd00fb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

css-typed-om/Overview.bs

+6-1
Original file line numberDiff line numberDiff line change
@@ -1695,8 +1695,13 @@ rather than on {{CSSNumericValue}} instances.
16951695
or a [=math function=],
16961696
[=throw=] a {{SyntaxError}}
16971697
and abort this algorithm.
1698+
1699+
3. If |result| is a <<dimension-token>>
1700+
and [=creating a type=] from |result|'s unit returns failure,
1701+
[=throw=] a {{SyntaxError}}
1702+
and abort this algorithm.
16981703

1699-
3. [=Reify a numeric value=] |result|,
1704+
4. [=Reify a numeric value=] |result|,
17001705
and return the result.
17011706
</div>
17021707

0 commit comments

Comments
 (0)