From de39c47ff28ba1d4cc8501b3f2c818c8f66f4cab Mon Sep 17 00:00:00 2001 From: nainar Date: Fri, 16 Feb 2018 13:10:10 +1100 Subject: [PATCH] Be more explicit about throwing RangeError in CSSMathValue.invert() Fixes #679 --- 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 23e1bcd3..eda3c996 100644 --- a/css-typed-om/Overview.bs +++ b/css-typed-om/Overview.bs @@ -999,7 +999,7 @@ The following are the arithmetic operations you can perform on dimensions: return |this|’s {{CSSMathInvert/value}} internal slot. 2. If |this| is a {{CSSUnitValue}} object with {{CSSUnitValue/unit}} internal slot set to "number": - 1. If |this|’s {{CSSUnitValue/value}} internal slot is set to 0, + 1. If |this|’s {{CSSUnitValue/value}} internal slot is set to 0 or -0, [=throw=] a {{RangeError}}. 2. Else return a new {{CSSUnitValue}} with the {{CSSUnitValue/unit}} internal slot set to "number",