File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -878,10 +878,12 @@ The following are the arithmetic operations you can perform on dimensions:
878
878
1. If |this| is a {{CSSMathInvert}} object,
879
879
return |this|’s {{CSSMathInvert/value}} internal slot.
880
880
881
- 2. If |this| is a {{CSSUnitValue}} object with {{CSSUnitValue/unit}} internal slot set to "number",
882
- return a new {{CSSUnitValue}}
883
- with the {{CSSUnitValue/unit}} internal slot set to "number",
884
- and a {{CSSUnitValue/value}} internal slot set to the inverse of |this|’s.
881
+ 2. If |this| is a {{CSSUnitValue}} object with {{CSSUnitValue/unit}} internal slot set to "number":
882
+ 1. If |this|’s {{CSSUnitValue/value}} internal slot is set to 0,
883
+ [=throw=] a {{RangeError}} .
884
+ 2. Else return a new {{CSSUnitValue}}
885
+ with the {{CSSUnitValue/unit}} internal slot set to "number",
886
+ and a {{CSSUnitValue/value}} internal slot set to the inverse of |this|’s.
885
887
886
888
3. Otherwise,
887
889
return a new {{CSSMathInvert}} object
You can’t perform that action at this time.
0 commit comments