Skip to content

Commit 0a83ac6

Browse files
committed
[css-values-5] Add missing ? from some grammars, and reformat for readability. #6245
1 parent 7fc2d95 commit 0a83ac6

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

css-values-5/Overview.bs

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1035,7 +1035,10 @@ Global Syntax of the *-interpolate() family</h3>
10351035
&& <<easing-function>>? && <<segment-options>>?
10361036
] ,
10371037
<<input-position>>{1,2} : <<output-value>> ,
1038-
[ [ <<easing-function>> || <<segment-options>> ]? , <<input-position>>{1,2} : <<output-value>> ]#?
1038+
[
1039+
[ <<easing-function>> || <<segment-options>> ]? ,
1040+
<<input-position>>{1,2} : <<output-value>>
1041+
]#?
10391042
)
10401043
</pre>
10411044

@@ -1273,7 +1276,7 @@ Interpolated Numeric and Dimensional Values: the ''calc-interpolate()'' notation
12731276
&& <<easing-function>>?
12741277
] ,
12751278
<<input-position>>{1,2} : <<calc-sum>> ,
1276-
[ <<easing-function>>? , <<input-position>>{1,2} : <<calc-sum>> ]# )
1279+
[ <<easing-function>>? , <<input-position>>{1,2} : <<calc-sum>> ]#? )
12771280
</pre>
12781281

12791282
The <<calc-sum>> arguments can resolve
@@ -1297,8 +1300,10 @@ Interpolated Color Values: the ''color-interpolate()'' notation</h3>
12971300
&& <<easing-function>>? && <<color-interpolation-method>>?
12981301
] ,
12991302
<<input-position>>{1,2} : <<color>>,
1300-
[ [ <<easing-function>> || <<color-interpolation-method>> ],
1301-
<<input-position>>{1,2} : <<color>> ]# )
1303+
[
1304+
[ <<easing-function>> || <<color-interpolation-method>> ],
1305+
<<input-position>>{1,2} : <<color>>
1306+
]#? )
13021307
</pre>
13031308

13041309
<h3 id="transform-interpolate">
@@ -1315,7 +1320,7 @@ Interpolated Transform Values: the ''transform-interpolate()'' notation</h3>
13151320
&& <<easing-function>>?
13161321
],
13171322
<<input-position>>{1,2} : <<transform-list>>,
1318-
[ <<easing-function>>?, <<input-position>>{1,2} : <<transform-list>> ]# )
1323+
[ <<easing-function>>?, <<input-position>>{1,2} : <<transform-list>> ]#? )
13191324
</pre>
13201325

13211326
''transform-interpolate()'' is, itself, a <<transform-function>>.
@@ -1334,10 +1339,10 @@ Interpolated Property Values: the ''interpolate()'' notation</h3>
13341339
&& <<easing-function>>?
13351340
] ,
13361341
<<input-position>>{1,2} : <<whole-value>>,
1337-
[ <<easing-function>>?, <<input-position>>{1,2} : <<whole-value>> ]# ) |
1338-
interpolate( <<progress-source>> && [ by <<easing-function>> ]?
1339-
&& <<easing-function>>?
1340-
of <<keyframes-name>> )
1342+
[ <<easing-function>>?, <<input-position>>{1,2} : <<whole-value>> ]#? )
1343+
|
1344+
interpolate( <<progress-source>> && [ by <<easing-function>> ]?
1345+
&& <<easing-function>>? of <<keyframes-name>> )
13411346
</pre>
13421347

13431348
The first syntax alternative, like other [=interpolation notations=],

0 commit comments

Comments
 (0)