@@ -1310,9 +1310,8 @@ <h3 id=calc><span class=secno>9.1. </span> Mathematical Expressions:
13101310 id =max > max()</ dfn > functions allow mathematical expressions with addition
13111311 (‘< code class =css > +</ code > ’), subtraction (‘< code
13121312 class =css > -</ code > ’), multiplication (‘< code
1313- class =css > *</ code > ’), division (‘< code
1314- class =css > /</ code > ’), and modulus (‘< code
1315- class =css > mod</ code > ’) to be used as component values. The ‘< a
1313+ class =css > *</ code > ’), and division (‘< code
1314+ class =css > /</ code > ’) to be used as component values. The ‘< a
13161315 href ="#calc0 "> < code class =css > calc()</ code > </ a > ’ expression
13171316 represents the result of the mathematical calculation it contains, using
13181317 standard precedence operator rules. The ‘< a href ="#min "> < code
@@ -1324,11 +1323,7 @@ <h3 id=calc><span class=secno>9.1. </span> Mathematical Expressions:
13241323 href ="#frequency-value "> < code > <frequency></ code > </ a > , < a
13251324 href ="#angle-value "> < code > <angle></ code > </ a > , < a
13261325 href ="#time-value "> < code > <time></ code > </ a > , or < a
1327- href ="#number-value "> < code > <number></ code > </ a > values are allowed.
1328-
1329- < p class =issue > What definition of "mod" do we use? Should ‘< code
1330- class =css > calc(-3mod5)</ code > ’ return ‘< code
1331- class =css > -3</ code > ’ or ‘< code class =css > 2</ code > ’?</ p >
1326+ href ="#number-value "> < code > <number></ code > </ a > values are allowed.</ p >
13321327 <!-- http://lists.w3.org/Archives/Public/www-style/2010May/0001.html
13331328 This has notes on how we should handle things when calc() is extended to
13341329 handle unit mult/div. Related to this is <unit>mod<unit>, which can return
@@ -1372,15 +1367,15 @@ <h3 id=calc><span class=secno>9.1. </span> Mathematical Expressions:
13721367min : "min(" S* sum [ "," S* sum ]* S* ")";
13731368max : "max(" S* sum [ "," S* sum ]* S* ")";
13741369sum : product [ S+ [ "+" | "-" ] S+ product ]*;
1375- product : unit [ S* [ "*" | "/" | "mod" ] S* unit ]*;
1370+ product : unit [ S* [ "*" | "/" ] S* unit ]*;
13761371unit : ["+"|"-"]? [ NUMBER | DIMENSION | PERCENTAGE |
13771372 min | max | "(" S* sum S* ")" ];</ pre >
13781373
13791374 < p class =note > Note that the grammar requires spaces around binary
13801375 ‘< code class =css > +</ code > ’ and ‘< code
13811376 class =css > -</ code > ’ operators. The ‘< code
1382- class =css > *</ code > ’, ‘< code class =css > /</ code > ’, and
1383- ‘ < code class = css > mod </ code > ’ operators do not require spaces.
1377+ class =css > *</ code > ’ and ‘< code class =css > /</ code > ’
1378+ operators do not require spaces.
13841379
13851380 < p > Additionally, the following redefinition is made to the informative
13861381 grammar appearing in < a href ="http://www.w3.org/TR/CSS2/grammar.html "> CSS
@@ -1432,10 +1427,9 @@ <h3 id=calc><span class=secno>9.1. </span> Mathematical Expressions:
14321427 side is ‘< code class =css > <number> </ code > ’; resolve to the
14331428 type of the other side
14341429
1435- < li > At ‘< code class =css > /</ code > ’ or ‘< code
1436- class =css > mod</ code > ’, check that the right side is ‘< code
1437- class =css > <number> </ code > ’; resolve to the type of the left
1438- side.
1430+ < li > At ‘< code class =css > /</ code > ’, check that the right side
1431+ is ‘< code class =css > <number> </ code > ’; resolve to the type
1432+ of the left side.
14391433 </ ul >
14401434
14411435 < p > If an operator does not pass the above checks, the expression is
0 commit comments