W3C home > Mailing lists > Public > public-canvas-api@w3.org > July to September 2012

gradient edge case

From: Rik Cabanier <cabanier@gmail.com>
Date: Sat, 1 Sep 2012 18:58:45 -0700
Message-ID: <CAGN7qDCAUTS0c03_=q-LsRe_+2uyf3PursPoLV59xJSq8JDrEg@mail.gmail.com>
To: whatwg <whatwg@lists.whatwg.org>, public-canvas-api@w3.org
All,

Currently the canvas spec specifies the following:

If x0 = x1 and y0 = y1, then the linear gradient must paint nothing.

and

If x0 = x1 and y0 = y1 and r0 = r1, then the radial gradient must paint
nothing

Why is this? It seems that the gradient should just be a line or circle
that has the first colorstop's on the left/inside and the last colorstop's
color on the right/outside.

Rik
Received on Sunday, 2 September 2012 01:59:13 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 2 September 2012 01:59:13 GMT