- From: Tab Atkins Jr.. via cvs-syncmail <cvsmail@w3.org>
- Date: Wed, 25 May 2011 22:01:59 +0000
- To: public-css-commits@w3.org
Update of /sources/public/csswg/css3-images
In directory hutz:/tmp/cvs-serv377
Modified Files:
Overview.html Overview.src.html
Log Message:
Changed the behavior of degenerate repeating gradients, to avoid non-continuous behavior dependent on rounding behavior.
Index: Overview.html
===================================================================
RCS file: /sources/public/csswg/css3-images/Overview.html,v
retrieving revision 1.104
retrieving revision 1.105
diff -u -d -r1.104 -r1.105
--- Overview.html 24 May 2011 22:43:46 -0000 1.104
+++ Overview.html 25 May 2011 22:01:57 -0000 1.105
@@ -20,7 +20,7 @@
<h1>CSS Image Values and Replaced Content Module Level 3</h1>
- <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 24 May 2011</h2>
+ <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 25 May 2011</h2>
<dl>
<dt>Latest Version:
@@ -1128,11 +1128,11 @@
</div>
<p>If the difference in the positions of the first and last color-stops is
- 0 (for example, in the value ‘<code
- class=css>repeating-linear-gradient(red 10px, blue 10px)</code>’),
- the gradient defines a solid-color image with the color of the last
- color-stop in the rule (in this case, then, it would simply define a blue
- image).</p>
+ less than 1px, the <i>actual value</i> of the position of the last
+ color-stop must be the position of the first color-stop, plus 1px. <span
+ class=note>This behavior is different from a previous version of the spec
+ and does not match implementations; the change was made to avoid
+ non-continuous behavior in this case.</span></p>
<!-- ====================================================================== -->
<h3 id=color-stop-syntax><span class=secno>5.4. </span> Gradient
Index: Overview.src.html
===================================================================
RCS file: /sources/public/csswg/css3-images/Overview.src.html,v
retrieving revision 1.108
retrieving revision 1.109
diff -u -d -r1.108 -r1.109
--- Overview.src.html 24 May 2011 22:43:46 -0000 1.108
+++ Overview.src.html 25 May 2011 22:01:57 -0000 1.109
@@ -830,9 +830,11 @@
</div>
<p>If the difference in the positions of the first and last color-stops is
- 0 (for example, in the value ''repeating-linear-gradient(red 10px, blue 10px)''), the
- gradient defines a solid-color image with the color of the last color-stop
- in the rule (in this case, then, it would simply define a blue image).</p>
+ less than 1px, the <i>actual value</i> of the position of the last color-stop
+ must be the position of the first color-stop, plus 1px.
+ <span class='note'>This behavior is different from a previous version of the
+ spec and does not match implementations; the change was made to avoid
+ non-continuous behavior in this case.</span></p>
<!-- ====================================================================== -->
Received on Wednesday, 25 May 2011 22:02:00 UTC