Skip to content

Commit 281749b

Browse files
cdoublevsvgeesus
authored andcommitted
[css-images] Explicitly allow <zero> for gradient rotation
1 parent 2e37f85 commit 281749b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

css-images-3/Overview.bs

+1-1
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ Linear Gradients: the ''linear-gradient()'' notation {#linear-gradients}
334334
<pre class=prod>
335335
<<linear-gradient()>> = linear-gradient( [ <<linear-gradient-syntax>> ] )
336336
337-
<dfn>&lt;linear-gradient-syntax></dfn> = [ <<angle>> | to <<side-or-corner>> ]? , <<color-stop-list>>
337+
<dfn>&lt;linear-gradient-syntax></dfn> = [ <<angle>> | <<zero>> | to <<side-or-corner>> ]? , <<color-stop-list>>
338338
339339
<dfn>&lt;side-or-corner></dfn> = [left | right] || [top | bottom]
340340
</pre>

css-images-4/Overview.bs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1271,7 +1271,7 @@ Linear Gradients: the ''linear-gradient()'' notation {#linear-gradients}
12711271

12721272
<pre class=prod>
12731273
<dfn>&lt;linear-gradient-syntax></dfn> =
1274-
[ [ <<angle>> | to <<side-or-corner>> ] || <<color-interpolation-method>> ]? ,
1274+
[ [ <<angle>> | <<zero>> | to <<side-or-corner>> ] || <<color-interpolation-method>> ]? ,
12751275
<<color-stop-list>>
12761276
<dfn>&lt;side-or-corner></dfn> = [left | right] || [top | bottom]
12771277
</pre>
@@ -1560,14 +1560,14 @@ Conic Gradients: the ''conic-gradient()'' notation</h3>
15601560
<pre class='prod'>
15611561
<dfn>conic-gradient()</dfn> = conic-gradient( [ <<conic-gradient-syntax>> ] )
15621562
<dfn>&lt;conic-gradient-syntax></dfn> =
1563-
[ [ [ from <<angle>> ]? [ at <<position>> ]? ] || <<color-interpolation-method>> ]? ,
1563+
[ [ [ from [ <<angle>> | <<zero>> ] ]? [ at <<position>> ]? ] || <<color-interpolation-method>> ]? ,
15641564
<<angular-color-stop-list>>
15651565
</pre>
15661566

15671567
The arguments are defined as follows:
15681568

15691569
<dl dfn-type=value dfn-for="conic-gradient(), repeating-conic-gradient()">
1570-
<dt><dfn><<angle>></dfn>
1570+
<dt><dfn><<angle>> | <<zero>></dfn>
15711571
<dd>
15721572
The entire gradient is rotated by this angle.
15731573
If omitted, defaults to ''0deg''.

0 commit comments

Comments
 (0)