Skip to content

Commit f032ab4

Browse files
author
Naina Raisinghani
committed
Setting/modifiying CSSUnitValue.unit should be consistent on Error thrown
1 parent 9db7f3f commit f032ab4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

css-typed-om/Overview.bs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1421,7 +1421,7 @@ are represented as {{CSSUnitValue}}s.
14211421
perform the following steps:
14221422

14231423
1. If [=creating a type=] from |unit| returns failure,
1424-
[=throw=] a {{SyntaxError}}
1424+
[=throw=] a {{TypeError}}
14251425
and abort this algorithm.
14261426

14271427
2. Return a new {{CSSUnitValue}}

0 commit comments

Comments
 (0)