Skip to content

Commit 8148355

Browse files
committed
[css-values] Use the new 'invert a type' algo.
1 parent 87b4d46 commit 8148355

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

css-values-4/Overview.bs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1774,10 +1774,11 @@ Type Checking</h4>
17741774
Otherwise, the sub-expression's [=CSSNumericValue/type=] is the returned type.
17751775

17761776
* At a <css>/</css> sub-expression,
1777-
find the [=CSSNumericValue/types=] of its left and right arguments,
1778-
then negate the values of every [=map/entry=] in the right argument’s [=CSSNumericValue/type=].
1779-
Attempt to [=multiply two types|multiply=] the left argument’s type
1780-
and the negated right argument’s type.
1777+
let |left type| be the result of finding the [=CSSNumericValue/types=] of its left argument,
1778+
and |right type| be the result of finding the [=CSSNumericValue/types=] of its right argument
1779+
and then [=invert a type|inverting=] it.
1780+
1781+
Attempt to [=multiply two types|multiply=] the |left type| and |right type|.
17811782
If this returns failure,
17821783
the entire [=math function=] is invalid.
17831784
Otherwise, the sub-expression's [=CSSNumericValue/type=] is the returned type.

0 commit comments

Comments
 (0)