Skip to content

Commit 8786a40

Browse files
committed
Removed dependence on SVG for transitioning between color-stops, in favor of an explicit explanation.
1 parent d69c431 commit 8786a40

2 files changed

Lines changed: 12 additions & 8 deletions

File tree

css3-images/Overview.html

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515

1616
<h1>CSS Images Module Level 3</h1>
1717

18-
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 25 August 2010</h2>
18+
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 28 August 2010</h2>
1919

2020
<dl>
2121
<dt>This version:</dt>
22-
<!-- <dd><a href="http://www.w3.org/TR/2010/CR-css3-images-20100825/">http://www.w3.org/TR/2010/CR-css3-images-20100825/</a></dd> -->
22+
<!-- <dd><a href="http://www.w3.org/TR/2010/CR-css3-images-20100828/">http://www.w3.org/TR/2010/CR-css3-images-20100828/</a></dd> -->
2323

2424
<dd><a
2525
href="http://dev.w3.org/csswg/css3-images/">http://dev.w3.org/csswg/css3-images/</a>
@@ -546,11 +546,14 @@ <h4 id=color-stop-syntax><span class=secno>5.1.2.
546546
placed before the starting-point or after the ending-point; this is
547547
perfectly valid, as the starting-point and ending-point are just
548548
convenient references, and do not directly interact in the display of
549-
the gradient. At each color-stop, the line is the color of the
550-
color-stop. Before the first color-stop, the line is the color of the
551-
first color-stop. After the last color-stop, the line is the color of
552-
the last color-stop. Between two color-stops, the colors are
553-
interpolated as SVG gradients.</p>
549+
the gradient.</p>
550+
551+
<p>At each color-stop, the line is the color of the color-stop. Before
552+
the first color-stop, the line is the color of the first color-stop.
553+
After the last color-stop, the line is the color of the last color-stop.
554+
Between two color-stops, the line's color is linearly interpolated
555+
between the colors of the two color-stops, with the interpolation taking
556+
place in premultiplied RGBA space.</p>
554557

555558
<p>The following steps must be applied <em>in order</em> to process the
556559
list of color-stops. After applying these rules, all color-stops will

css3-images/Overview.src.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,8 @@ <h4 class=no-toc><code>linear-gradient()</code> syntax</h4>
270270
<h4><code>color-stop</code> Syntax</h4>
271271
<p>The <dfn><code>&lt;color-stop&gt;</code></dfn> stands for:</p>
272272
<pre class=prod><code>&lt;color&gt; [ &lt;percentage&gt; | &lt;length&gt; ]?</code></pre>
273-
<p>Color-stops are points placed along the line defined by the gradient-line at the beginning of the rule. Color-stops must be specified in order. Percentages refer to the length of the gradient-line, with 0% being at the starting point and 100% being at the ending point. Lengths are measured from the starting-point in the direction of the ending-point. With either measure, color-stops may be placed before the starting-point or after the ending-point; this is perfectly valid, as the starting-point and ending-point are just convenient references, and do not directly interact in the display of the gradient. At each color-stop, the line is the color of the color-stop. Before the first color-stop, the line is the color of the first color-stop. After the last color-stop, the line is the color of the last color-stop. Between two color-stops, the colors are interpolated as SVG gradients.</p>
273+
<p>Color-stops are points placed along the line defined by the gradient-line at the beginning of the rule. Color-stops must be specified in order. Percentages refer to the length of the gradient-line, with 0% being at the starting point and 100% being at the ending point. Lengths are measured from the starting-point in the direction of the ending-point. With either measure, color-stops may be placed before the starting-point or after the ending-point; this is perfectly valid, as the starting-point and ending-point are just convenient references, and do not directly interact in the display of the gradient.</p>
274+
<p>At each color-stop, the line is the color of the color-stop. Before the first color-stop, the line is the color of the first color-stop. After the last color-stop, the line is the color of the last color-stop. Between two color-stops, the line's color is linearly interpolated between the colors of the two color-stops, with the interpolation taking place in premultiplied RGBA space.</p>
274275
<p>The following steps must be applied <em>in order</em> to process the list of color-stops. After applying these rules, all color-stops will have a definite position and they will be in ascending order:</p>
275276
<ol>
276277
<li>If the first color-stop does not have a position, its position defaults to 0%. If the last color-stop does not have a position, its position defaults to 100%.</li>

0 commit comments

Comments
 (0)