Skip to content

Commit 81964e3

Browse files
committed
Add example, remove stray definition, simplify note.
1 parent 946d251 commit 81964e3

2 files changed

Lines changed: 17 additions & 11 deletions

File tree

css3-images/Overview.html

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,8 +1017,14 @@ <h4 class=no-toc id=radial-gradient-syntax><span class=secno>4.2.1. </span>
10171017
&lt;radial-gradient> = radial-gradient(
10181018
[ [ &lt;shape> || &lt;size> ] [ at &lt;position> ]? ,]?
10191019
&lt;color-stop> [ , &lt;color-stop> ]+
1020-
)
1021-
&lt;extent-keyword> = closest-corner | closest-side | farthest-corner | farthest-side</pre>
1020+
)</pre>
1021+
1022+
<div class=example>
1023+
<p>Here is an example of a circular radial gradient 5em wide and
1024+
positioned with its center in the top left corner:
1025+
1026+
<pre>radial-gradient(5em circle at top left, yellow, blue)</pre>
1027+
</div>
10221028

10231029
<p>The arguments are defined as follows:
10241030

@@ -1139,12 +1145,7 @@ <h4 class=no-toc id=radial-gradient-syntax><span class=secno>4.2.1. </span>
11391145
</dl>
11401146

11411147
<div class=note>
1142-
<p>The grammar listed above is kept deliberately simple for readability
1143-
purposes, with some details instead expressed in the prose. All of the
1144-
details can be expressed directly in the grammar, however, and such a
1145-
grammar is presented here for use by implementors and others writing
1146-
parsers. It is officially non-normative, but should match the same set of
1147-
strings that the normative grammar does when augmented with the prose.
1148+
<p>Expanded with the above definitions, the grammar becomes:
11481149

11491150
<pre>
11501151
&lt;radial-gradient> = radial-gradient(

css3-images/Overview.src.html

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -624,8 +624,13 @@ <h4 class='no-toc' id='radial-gradient-syntax'>
624624
&lt;radial-gradient> = radial-gradient(
625625
[ [ &lt;shape> || &lt;size> ] [ at &lt;position> ]? ,]?
626626
&lt;color-stop> [ , &lt;color-stop> ]+
627-
)
628-
&lt;extent-keyword> = closest-corner | closest-side | farthest-corner | farthest-side</pre>
627+
)</pre>
628+
629+
<div class=example>
630+
<p>Here is an example of a circular radial gradient 5em wide and
631+
positioned with its center in the top left corner:
632+
<pre>radial-gradient(5em circle at top left, yellow, blue)</pre>
633+
</div>
629634

630635
<p>The arguments are defined as follows:
631636

@@ -706,7 +711,7 @@ <h4 class='no-toc' id='radial-gradient-syntax'>
706711
</dl>
707712

708713
<div class='note'>
709-
<p>The grammar listed above is kept deliberately simple for readability purposes, with some details instead expressed in the prose. All of the details can be expressed directly in the grammar, however, and such a grammar is presented here for use by implementors and others writing parsers. It is officially non-normative, but should match the same set of strings that the normative grammar does when augmented with the prose.
714+
<p>Expanded with the above definitions, the grammar becomes:
710715

711716
<pre>
712717
&lt;radial-gradient> = radial-gradient(

0 commit comments

Comments
 (0)