Skip to content

Commit 5da0b7e

Browse files
committed
[css-values-4] Rename <calc-constant> to <calc-keyword>, specify that the production can be expanded in some contexts.
1 parent efbc43d commit 5da0b7e

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

css-values-4/Overview.bs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4050,11 +4050,16 @@ Syntax</h3>
40504050
<dfn>&lt;calc-sum></dfn> = <<calc-product>> [ [ '+' | '-' ] <<calc-product>> ]*
40514051
<dfn>&lt;calc-product></dfn> = <<calc-value>> [ [ '*' | '/' ] <<calc-value>> ]*
40524052
<dfn>&lt;calc-value></dfn> = <<number>> | <<dimension>> | <<percentage>> |
4053-
<<calc-constant>> | ( <<calc-sum>> )
4054-
<dfn>&lt;calc-constant></dfn> = e | pi | infinity | -infinity | NaN
4053+
<<calc-keyword>> | ( <<calc-sum>> )
4054+
<dfn>&lt;calc-keyword></dfn> = e | pi | infinity | -infinity | NaN
40554055
<<rounding-strategy>> = nearest | up | down | to-zero
40564056
</pre>
40574057

4058+
In some contexts, additional <<calc-keyword>> values
4059+
can be defined to be valid.
4060+
(For example, in [=relative color=] syntax,
4061+
appropriate channel keywords are allowed.)
4062+
40584063
In addition, [=whitespace=]
40594064
is required on both sides of the <css>+</css> and <css>-</css> operators.
40604065
(The <css>*</css> and <css>/</css> operators can be used without white space around them.)

0 commit comments

Comments
 (0)