Skip to content

Commit

Permalink
Fix #1241 by adding a number-calc microgrammar (#1244)
Browse files Browse the repository at this point in the history
Another option would be to allow any calc-value again, and let the prose that follows disambiguate like we do for the * products.
  • Loading branch information
FremyCompany authored and tabatkins committed Apr 19, 2017
1 parent 375c55f commit 40dcee1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion css-values/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1646,8 +1646,11 @@ Syntax</h4>
<pre class='prod'>
<<calc()>> = calc( <<calc-sum>> )
<dfn>&lt;calc-sum></dfn> = <<calc-product>> [ [ '+' | '-' ] <<calc-product>> ]*
<dfn>&lt;calc-product></dfn> = <<calc-value>> [ '*' <<calc-value>> | '/' <<number>> ]*
<dfn>&lt;calc-product></dfn> = <<calc-value>> [ '*' <<calc-value>> | '/' <<calc-number-value>> ]*
<dfn>&lt;calc-value></dfn> = <<number>> | <<dimension>> | <<percentage>> | ( <<calc-sum>> )
<dfn>&lt;calc-number-sum></dfn> = <<calc-number-product>> [ [ '+' | '-' ] <<calc-number-product>> ]*
<dfn>&lt;calc-number-product></dfn> = <<calc-number-value>> [ '*' <<calc-number-value>> | '/' <<calc-number-value>> ]*
<dfn>&lt;calc-number-value></dfn> = <<number>> | ( <<calc-number-sum>> )
</pre>

In addition, <a href="https://www.w3.org/TR/css-syntax/#whitespace">white space</a>
Expand Down

0 comments on commit 40dcee1

Please sign in to comment.