Skip to content

Commit 388b407

Browse files
committed
Fixed default value of implicit size/shape arg for radial gradients.
1 parent 45337a9 commit 388b407

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

css3-images/Overview.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -900,15 +900,19 @@ <h4 class=no-toc id=radial-gradient-syntax><span class=secno>5.2.1. </span>
900900
ending-ellipse will be a circle with a constant radius. &lsquo;<code
901901
class=css>ellipse</code>&rsquo; indicates that the gradient-shape will
902902
be an axis-aligned ellipse (that is, its major and minor radiuses will
903-
be horizontal and vertical, not necessarily in that order).</p>
903+
be horizontal and vertical, not necessarily in that order). If the <a
904+
href="#ltshape"><i>&lt;shape></i></a> is omitted, it defaults to
905+
&lsquo;<code class=css>ellipse</code>&rsquo;.</p>
904906

905907
<p>The <a href="#ltsize"><i>&lt;size></i></a> keyword is defined as:</p>
906908

907909
<pre><code><dfn id=ltsize>&lt;size></dfn> = closest-side | closest-corner | farthest-side | farthest-corner | contain | cover</code></pre>
908910

909911
<p>Its values are defined in the list below. For the purpose of these
910912
definitions, consider the box edges as extending infinitely in both
911-
directions, rather than being finite line segments.</p>
913+
directions, rather than being finite line segments. If the <a
914+
href="#ltsize"><i>&lt;size></i></a> is omitted, it defaults to &lsquo;<a
915+
href="#radial-cover"><code class=css>cover</code></a>&rsquo;.</p>
912916

913917
<dl>
914918
<dt><dfn id=radial-closest-side>closest-side</dfn>

css3-images/Overview.src.html

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -571,16 +571,13 @@ <h4 class='no-toc' id='radial-gradient-syntax'>
571571

572572
<pre><code><dfn>&lt;shape></dfn> = circle | ellipse</code></pre>
573573

574-
<p>''circle'' indicates that the ending-ellipse will be a circle with
575-
a constant radius. ''ellipse'' indicates that the gradient-shape
576-
will be an axis-aligned ellipse (that is, its major and minor radiuses
577-
will be horizontal and vertical, not necessarily in that order).</p>
574+
<p>''circle'' indicates that the ending-ellipse will be a circle with a constant radius. ''ellipse'' indicates that the gradient-shape will be an axis-aligned ellipse (that is, its major and minor radiuses will be horizontal and vertical, not necessarily in that order). If the <i>&lt;shape></i> is omitted, it defaults to ''ellipse''.</p>
578575

579576
<p>The <i>&lt;size></i> keyword is defined as:</p>
580577

581578
<pre><code><dfn>&lt;size></dfn> = closest-side | closest-corner | farthest-side | farthest-corner | contain | cover</code></pre>
582579

583-
<p>Its values are defined in the list below. For the purpose of these definitions, consider the box edges as extending infinitely in both directions, rather than being finite line segments.</p>
580+
<p>Its values are defined in the list below. For the purpose of these definitions, consider the box edges as extending infinitely in both directions, rather than being finite line segments. If the <i>&lt;size></i> is omitted, it defaults to ''cover''.</p>
584581

585582
<dl>
586583
<dt><dfn id='radial-closest-side'>closest-side</dfn></dt>

0 commit comments

Comments
 (0)