@@ -1776,18 +1776,27 @@ Type-Checking Expressions</h5>
1776
1776
so long as the expression as a whole resolves to a singular unit
1777
1777
according to the following rules:
1778
1778
1779
- * At a ''+'' or ''-'' sub-expression,
1779
+ * At a <css> + </css> or <css> - </css> sub-expression,
1780
1780
attempt to [=add two types|add the types=] of the left and right arguments.
1781
1781
If this returns failure,
1782
1782
the entire [=math function=] is invalid.
1783
1783
Otherwise, the sub-expression's [=CSSNumericValue/type=] is the returned type.
1784
1784
1785
- * At a ''*'' or ''/'' sub-expression,
1785
+ * At a <css> * </css> sub-expression,
1786
1786
attempt to [=multiply two types|multiply the types=] of the left and right arguments.
1787
1787
If this returns failure,
1788
1788
the entire [=math function=] is invalid.
1789
1789
Otherwise, the sub-expression's [=CSSNumericValue/type=] is the returned type.
1790
1790
1791
+ * At a <css> /</css> sub-expression,
1792
+ find the [=CSSNumericValue/types=] of its left and right arguments,
1793
+ then negate the values of every [=map/entry=] in the right argument’s [=CSSNumericValue/type=] .
1794
+ Attempt to [=multiply two types|multiply=] the left argument’s type
1795
+ and the negated right argument’s type.
1796
+ If this returns failure,
1797
+ the entire [=math function=] is invalid.
1798
+ Otherwise, the sub-expression's [=CSSNumericValue/type=] is the returned type.
1799
+
1791
1800
* The [=CSSNumericValue/type=] of a literal
1792
1801
is the result of [=creating a type=]
1793
1802
from the literal's unit,
@@ -1809,7 +1818,7 @@ Type-Checking Expressions</h5>
1809
1818
If the result is failure,
1810
1819
the entire [=math function=] is invalid.
1811
1820
1812
- The [=math function=] resolves to <<length>> , <<angle>> , <<time>> , <<frequency>> , <<resolution>> , <<flex>> , or <<percentage>>
1821
+ A [=math function=] resolves to <<length>> , <<angle>> , <<time>> , <<frequency>> , <<resolution>> , <<flex>> , or <<percentage>>
1813
1822
according to which of those productions its [=CSSNumericValue/type=] [=CSSNumericValue/matches=] .
1814
1823
(These categories are mutually exclusive.)
1815
1824
If it can't [=CSSNumericValue/match=] any of these,
0 commit comments