Skip to content

Commit 165233d

Browse files
committed
[css-values] Multiplication/division can't fail, since percent hint is always null.
1 parent 2634aeb commit 165233d

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

css-values-4/Overview.bs

+4-8
Original file line numberDiff line numberDiff line change
@@ -1769,20 +1769,16 @@ Type Checking</h4>
17691769
Otherwise, the sub-expression's [=CSSNumericValue/type=] is the returned type.
17701770

17711771
* At a <css>*</css> sub-expression,
1772-
attempt to [=multiply two types|multiply the types=] of the left and right arguments.
1773-
If this returns failure,
1774-
the entire [=math function=] is invalid.
1775-
Otherwise, the sub-expression's [=CSSNumericValue/type=] is the returned type.
1772+
[=multiply two types|multiply the types=] of the left and right arguments.
1773+
The sub-expression's [=CSSNumericValue/type=] is the returned result.
17761774

17771775
* At a <css>/</css> sub-expression,
17781776
let |left type| be the result of finding the [=CSSNumericValue/types=] of its left argument,
17791777
and |right type| be the result of finding the [=CSSNumericValue/types=] of its right argument
17801778
and then [=invert a type|inverting=] it.
17811779

1782-
Attempt to [=multiply two types|multiply=] the |left type| and |right type|.
1783-
If this returns failure,
1784-
the entire [=math function=] is invalid.
1785-
Otherwise, the sub-expression's [=CSSNumericValue/type=] is the returned type.
1780+
The sub-expression's [=CSSNumericValue/type=] is the result of
1781+
[=multiply two types|multiplying=] the |left type| and |right type|.
17861782

17871783
* Anything else is a terminal value,
17881784
whose [=CSSNumericValue/type=] is determined based on its CSS type:

0 commit comments

Comments
 (0)