Skip to content

Commit 68a9c8a

Browse files
committed
Wrapped the expanded r-g grammar in a note, added more explanation of why it exists.
1 parent a808099 commit 68a9c8a

2 files changed

Lines changed: 16 additions & 5 deletions

File tree

css3-images/Overview.html

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -976,10 +976,16 @@ <h4 class=no-toc id=radial-gradient-syntax><span class=secno>5.2.1. </span>
976976
</dl>
977977
</dl>
978978

979-
<p>The expanded grammar for &lsquo;<code
980-
class=css>radial-gradient()</code>&rsquo; is thus:
979+
<div class=note>
980+
<p>The grammar listed above is kept deliberately simple for readability
981+
purposes, with some details instead expressed in the prose. All of the
982+
details can be expressed directly in the grammar, however, and such a
983+
grammar is presented here for use by implementors and others writing
984+
parsers. It is officially non-normative, but should match the same set of
985+
strings that the normative grammar does when augmented with the prose.
981986

982-
<pre>&lt;radial-gradient> = radial-gradient(
987+
<pre>
988+
&lt;radial-gradient> = radial-gradient(
983989
[ [ circle | ellipse ] , |
984990
[ circle | ellipse ]? [ at &lt;position> || to &lt;extent-keyword> ] , |
985991
circle? [ at &lt;position> || to &lt;length> ] , |
@@ -988,6 +994,7 @@ <h4 class=no-toc id=radial-gradient-syntax><span class=secno>5.2.1. </span>
988994
&lt;color-stop> [ , &lt;color-stop> ]+
989995
)
990996
&lt;extent-keyword> = closest-corner | closest-side | farthest-corner | farthest-side</pre>
997+
</div>
991998

992999
<h4 class=no-toc id=radial-color-stops><span class=secno>5.2.2. </span>
9931000
Placing Color Stops</h4>

css3-images/Overview.src.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -629,8 +629,11 @@ <h4 class='no-toc' id='radial-gradient-syntax'>
629629
</dd>
630630
</dl>
631631

632-
<p>The expanded grammar for ''radial-gradient()'' is thus:
633-
<pre>&lt;radial-gradient> = radial-gradient(
632+
<div class='note'>
633+
<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.
634+
635+
<pre>
636+
&lt;radial-gradient> = radial-gradient(
634637
[ [ circle | ellipse ] , |
635638
[ circle | ellipse ]? [ at &lt;position> || to &lt;extent-keyword> ] , |
636639
circle? [ at &lt;position> || to &lt;length> ] , |
@@ -639,6 +642,7 @@ <h4 class='no-toc' id='radial-gradient-syntax'>
639642
&lt;color-stop> [ , &lt;color-stop> ]+
640643
)
641644
&lt;extent-keyword> = closest-corner | closest-side | farthest-corner | farthest-side</pre>
645+
</div>
642646

643647
<h4 class="no-toc" id="radial-color-stops">
644648
Placing Color Stops</h4>

0 commit comments

Comments
 (0)