Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 14 additions & 8 deletions css-images-3/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -331,10 +331,10 @@ Linear Gradients: the ''linear-gradient()'' notation {#linear-gradients}
Its syntax is as follows:

<pre class=prod>
<<linear-gradient()>> = linear-gradient(
[ <<angle>> | to <<side-or-corner>> ]? ,
<<color-stop-list>>
)
<<linear-gradient()>> = linear-gradient( [ <<linear-gradient-syntax>> ] )

<dfn>&lt;linear-gradient-syntax></dfn> = [ <<angle>> | to <<side-or-corner>> ]? , <<color-stop-list>>

<dfn>&lt;side-or-corner></dfn> = [left | right] || [top | bottom]
</pre>

Expand Down Expand Up @@ -506,10 +506,11 @@ Radial Gradients: the ''radial-gradient()'' notation {#radial-gradients}
The radial gradient syntax is:

<pre class=prod>
<<radial-gradient()>> = radial-gradient(
[ <<rg-ending-shape>> || <<rg-size>> ]? [ at <<position>> ]? ,
<<color-stop-list>>
)
<<radial-gradient()>> = radial-gradient( [ <radial-gradient-syntax> ] )

<dfn>&lt;radial-gradient-syntax></dfn> =
<<rg-ending-shape>> || <<rg-size>> ]? [ at <<position>> ]? ,
<<color-stop-list>>

<dfn>&lt;rg-size></dfn> = <<rg-extent-keyword>> | <<length [0,∞]>> | <<length-percentage [0,∞]>>{2}

Expand Down Expand Up @@ -770,6 +771,11 @@ Repeating Gradients: the ''repeating-linear-gradient()'' and ''repeating-radial-
and are interpreted the same
as their respective non-repeating siblings defined previously.

<pre class=prod>
<dfn>&lt;repeating-linear-gradient()></dfn> = repeating-linear-gradient( [ <<linear-gradient-syntax>> ] )
<dfn>&lt;repeating-radial-gradient()></dfn> = repeating-radial-gradient( [ <<radial-gradient-syntax>> ] )
</pre>

When rendered, however, the color-stops are repeated infinitely in both directions,
with their positions shifted by multiples of the difference between
the last specified color-stop's position
Expand Down
20 changes: 12 additions & 8 deletions css-images-4/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1197,10 +1197,9 @@ Linear Gradients: the ''linear-gradient()'' notation {#linear-gradients}
See [[css-color-4#interpolation]].

<pre class=prod>
<dfn>linear-gradient()</dfn> = linear-gradient(
<dfn>&lt;linear-gradient-syntax></dfn> =
[ [ <<angle>> | to <<side-or-corner>> ] || <<color-interpolation-method>> ]? ,
<<color-stop-list>>
)
<dfn>&lt;side-or-corner></dfn> = [left | right] || [top | bottom]
</pre>

Expand Down Expand Up @@ -1343,10 +1342,9 @@ Radial Gradients: the ''radial-gradient()'' notation {#radial-gradients}
See [[css-color-4#interpolation]].

<pre class=prod>
<dfn>radial-gradient()</dfn> = radial-gradient(
[ [ [ <<rg-ending-shape>> || <<rg-size>> ]? [ at <<position>> ]? ] || <<color-interpolation-method>>]? ,
<<color-stop-list>>
)
<dfn>&lt;radial-gradient-syntax></dfn> =
[ [ [ <<rg-ending-shape>> || <<rg-size>> ]? [ at <<position>> ]? ] || <<color-interpolation-method>>]? ,
<<color-stop-list>>
</pre>

<div class="example">
Expand Down Expand Up @@ -1422,10 +1420,10 @@ Conic Gradients: the ''conic-gradient()'' notation</h3>
The syntax for a conic gradient is:

<pre class='prod'>
<dfn>conic-gradient()</dfn> = conic-gradient(
<dfn>conic-gradient()</dfn> = conic-gradient( [ <<conic-gradient-syntax>> ] )
<dfn>&lt;conic-gradient-syntax></dfn> =
[ [ [ from <<angle>> ]? [ at <<position>> ]? ] || <<color-interpolation-method>> ]? ,
<<angular-color-stop-list>>
)
</pre>

The arguments are defined as follows:
Expand Down Expand Up @@ -1583,6 +1581,12 @@ Repeating Gradients: the ''repeating-linear-gradient()'', ''repeating-radial-gra
and are interpreted the same
as their respective non-repeating siblings defined previously.

<pre class=prod>
<dfn>&lt;repeating-conic-gradient()></dfn> = repeating-conic-gradient( [ <<conic-gradient-syntax>> ] )
<dfn>&lt;repeating-linear-gradient()></dfn> = repeating-linear-gradient( [ <<linear-gradient-syntax>> ] )
<dfn>&lt;repeating-radial-gradient()></dfn> = repeating-radial-gradient( [ <<radial-gradient-syntax>> ] )
</pre>

<div class=example>
Basic repeating conic gradient:

Expand Down