- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 13 Jun 2008 08:12:09 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv15067
Modified Files:
Overview.html
Log Message:
Make gradients transform at the right time. (whatwg r1767)
Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.956
retrieving revision 1.957
diff -u -d -r1.956 -r1.957
--- Overview.html 13 Jun 2008 03:27:40 -0000 1.956
+++ Overview.html 13 Jun 2008 08:12:06 -0000 1.957
@@ -18950,13 +18950,10 @@
<p>The <dfn id=createlineargradient
title=dom-context-2d-createLinearGradient><code>createLinearGradient(<var
title="">x0</var>, <var title="">y0</var>, <var title="">x1</var>, <var
- title="">y1</var>)</code></dfn> method takes four arguments that, after
- being subjected to the <a href="#transformations0"
- title=dom-context-2d-transformation>current transformation matrix</a>,
- represent the start point (<var title="">x0</var>, <var title="">y0</var>)
- and end point (<var title="">x1</var>, <var title="">y1</var>) of the
- gradient. If any of the arguments to <code
- title=dom-context-2d-createLinearGradient><a
+ title="">y1</var>)</code></dfn> method takes four arguments that represent
+ the start point (<var title="">x0</var>, <var title="">y0</var>) and end
+ point (<var title="">x1</var>, <var title="">y1</var>) of the gradient. If
+ any of the arguments to <code title=dom-context-2d-createLinearGradient><a
href="#createlineargradient">createLinearGradient()</a></code> are
infinite or NaN, the method must raise a <code>NOT_SUPPORTED_ERR</code>
exception. Otherwise, the method must return a linear <code><a
@@ -18968,7 +18965,10 @@
ending point the color at offset 1 is used, and that all points on a line
perpendicular to the line that crosses the start and end points have the
color at the point where those two lines cross (with the colors coming
- from the interpolation described above).
+ from the interpolation described above). The points in the linear gradient
+ must be transformed as described by the <a href="#transformations0"
+ title=dom-context-2d-transformation>current transformation matrix</a> when
+ rendering.
<p>If <span><var title="">x<sub>0</sub></var> = <var
title="">x<sub>1</sub></var></span> and <span><var
@@ -18993,9 +18993,7 @@
<code>INDEX_SIZE_ERR</code> exception must be raised. Otherwise, the
method must return a radial <code><a
href="#canvasgradient">CanvasGradient</a></code> initialized with the two
- specified circles, after transforming them according to the <a
- href="#transformations0" title=dom-context-2d-transformation>current
- transformation matrix</a>.
+ specified circles.
<p>Radial gradients must be rendered by following these steps:
@@ -19058,7 +19056,12 @@
and areas outside the cone untouched by the gradient (transparent black).
<p>Gradients must be painted only where the relevant stroking or filling
- effects requires that they be drawn.</p>
+ effects requires that they be drawn.
+
+ <p>The points in the radial gradient must be transformed as described by
+ the <a href="#transformations0"
+ title=dom-context-2d-transformation>current transformation matrix</a> when
+ rendering.</p>
<!--
<p>Support for actually painting gradients is optional. Instead of
painting the gradients, user agents may instead just paint the first
Received on Friday, 13 June 2008 08:21:03 UTC