From f032ab443c158e97fd097227c858b36efc9edd6d Mon Sep 17 00:00:00 2001 From: Naina Raisinghani Date: Tue, 12 Dec 2017 11:31:07 +1100 Subject: [PATCH] Setting/modifiying CSSUnitValue.unit should be consistent on Error thrown --- css-typed-om/Overview.bs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/css-typed-om/Overview.bs b/css-typed-om/Overview.bs index 574b20f9..eb1862ee 100644 --- a/css-typed-om/Overview.bs +++ b/css-typed-om/Overview.bs @@ -1421,7 +1421,7 @@ are represented as {{CSSUnitValue}}s. perform the following steps: 1. If [=creating a type=] from |unit| returns failure, - [=throw=] a {{SyntaxError}} + [=throw=] a {{TypeError}} and abort this algorithm. 2. Return a new {{CSSUnitValue}}