Skip to content

Commit aa26a41

Browse files
committed
Make CSSUnitValues negate by just negating their value.
1 parent 6019cfd commit aa26a41

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

css-typed-om/Overview.bs

+5
Original file line numberDiff line numberDiff line change
@@ -680,6 +680,11 @@ The following are the arithmetic operations you can perform on dimensions:
680680
1. If |this| is a {{CSSMathNegate}} object,
681681
return |this|’s {{CSSMathNegate/value}} internal slot.
682682

683+
2. If |this| is a {{CSSUnitValue}} object,
684+
return a new {{CSSUnitValue}}
685+
with the same {{CSSUnitValue/unit}} internal slot as |this|,
686+
and a {{CSSUnitValue/value}} internal slot set to the negation of |this|’s.
687+
683688
2. Otherwise,
684689
return a new {{CSSMathNegate}} object
685690
whose {{CSSMathNegate/value}} internal slot

0 commit comments

Comments
 (0)