Skip to content

Commit bf9bb01

Browse files
committed
Remove the explicit grammar from repeating gradients in favor of just referring to the normal grammars, so I don't have sync errors anymore.
1 parent 90dc946 commit bf9bb01

2 files changed

Lines changed: 6 additions & 46 deletions

File tree

css3-images/Overview.html

Lines changed: 5 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -651,11 +651,10 @@ <h2 id=gradients><span class=secno>5. </span> Gradients</h2>
651651
id=ltgradient>&lt;gradient></dfn> = [ &lt;linear-gradient> | &lt;radial-gradient> | &lt;repeating-linear-gradient> | &lt;repeating-radial-gradient> ]</pre>
652652

653653
<p>where <a href="#ltlinear-gradient"><i>&lt;linear-gradient></i></a>, <a
654-
href="#ltradial-gradient"><i>&lt;radial-gradient></i></a>, <a
655-
href="#ltrepeating-linear-gradient"><i>&lt;repeating-linear-gradient></i></a>,
656-
and <a
657-
href="#ltrepeating-radial-gradient"><i>&lt;repeating-radial-gradient></i></a>
658-
are defined in their applicable sections below.
654+
href="#ltradial-gradient"><i>&lt;radial-gradient></i></a>,
655+
<i>&lt;repeating-linear-gradient></i>, and
656+
<i>&lt;repeating-radial-gradient></i> are defined in their applicable
657+
sections below.
659658

660659
<p>Gradients are a type of image, and can be used anywhere an image can,
661660
such as in the &lsquo;<code class=property>background-image</code>&rsquo;
@@ -1114,25 +1113,7 @@ <h3 id=repeating-gradients><span class=secno>5.3. </span> Repeating
11141113
defines &lsquo;<code class=css>repeating-linear-gradient()</code>&rsquo;
11151114
and &lsquo;<code class=css>repeating-radial-gradient()</code>&rsquo;
11161115
functions. These two functions take the same values and are interpreted
1117-
the same as their respective non-repeating siblings defined previously:
1118-
1119-
<pre class=prod><code><dfn
1120-
id=ltrepeating-linear-gradient>&lt;repeating-linear-gradient></dfn> = repeating-linear-gradient(
1121-
[ [ &lt;angle> | [ to <a
1122-
href="#side-or-corner"><code>&lt;side-or-corner></code></a> ] ] ,]?
1123-
&lt;color-stop>[, &lt;color-stop>]+
1124-
)
1125-
1126-
<dfn
1127-
id=ltrepeating-radial-gradient>&lt;repeating-radial-gradient></dfn> = repeating-radial-gradient(
1128-
[&lt;'background-position'&gt;,]?
1129-
[[
1130-
[&lt;shape&gt; || &lt;size&gt;]
1131-
|
1132-
[&lt;length> | &lt;percentage>]{2}
1133-
],]?
1134-
&lt;color-stop&gt;[, &lt;color-stop&gt;]+
1135-
)</code></pre>
1116+
the same as their respective non-repeating siblings defined previously.
11361117

11371118
<p>When rendered, however, the color-stops are repeated infinitely in both
11381119
directions, with their positions shifted by multiples of the difference
@@ -2362,12 +2343,6 @@ <h2 class=no-num id=index>Index</h2>
23622343
<li>&lt;radial-gradient>, <a href="#ltradial-gradient"
23632344
title="&lt;radial-gradient>"><strong>5.2.1.</strong></a>
23642345

2365-
<li>&lt;repeating-linear-gradient>, <a href="#ltrepeating-linear-gradient"
2366-
title="&lt;repeating-linear-gradient>"><strong>5.3.</strong></a>
2367-
2368-
<li>&lt;repeating-radial-gradient>, <a href="#ltrepeating-radial-gradient"
2369-
title="&lt;repeating-radial-gradient>"><strong>5.3.</strong></a>
2370-
23712346
<li>&lt;resolution>, <a href="#ltresolution"
23722347
title="&lt;resolution>"><strong>3.</strong></a>
23732348

css3-images/Overview.src.html

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -720,22 +720,7 @@ <h3 id='repeating-gradients'>
720720
this specification defines ''repeating-linear-gradient()'' and
721721
''repeating-radial-gradient()'' functions. These two functions take the
722722
same values and are interpreted the same as their respective non-repeating
723-
siblings defined previously:</p>
724-
725-
<pre class=prod><code><dfn>&lt;repeating-linear-gradient></dfn> = repeating-linear-gradient(
726-
[ [ &lt;angle> | [ to <code>&lt;side-or-corner></code> ] ] ,]?
727-
&lt;color-stop>[, &lt;color-stop>]+
728-
)
729-
730-
<dfn>&lt;repeating-radial-gradient></dfn> = repeating-radial-gradient(
731-
[&lt;'background-position'&gt;,]?
732-
[[
733-
[&lt;shape&gt; || &lt;size&gt;]
734-
|
735-
[&lt;length> | &lt;percentage>]{2}
736-
],]?
737-
&lt;color-stop&gt;[, &lt;color-stop&gt;]+
738-
)</code></pre>
723+
siblings defined previously.</p>
739724

740725
<p>When rendered, however, the color-stops are repeated infinitely in both
741726
directions, with their positions shifted by multiples of the difference

0 commit comments

Comments
 (0)