Re: [whatwg] Canvas feedback (various threads)

2011-02-11 Thread Boris Zbarsky
On 2/11/11 3:34 PM, Ian Hickson wrote: I'm assuming you're not suggesting changing the alpha=1 case (which is also different between CSS and canvas). Is that right? Sadly, probably right. For the alpha=1 case, I would expect there to be sites depending on this... -Boris

Re: [whatwg] Canvas feedback (various threads)

2011-02-11 Thread Ian Hickson
On Thu, 10 Feb 2011, Boris Zbarsky wrote: > On 2/10/11 11:31 PM, Ian Hickson wrote: > > I think you had a typo in your test. As far as I can tell, all > > WebKit-based browsers act the same as Opera and Firefox 3 on this: > > > > > > http://software.hixie.ch/utilities/js/canvas/?c.clearRect(0

Re: [whatwg] Canvas feedback (various threads)

2011-02-10 Thread Boris Zbarsky
On 2/10/11 11:54 PM, James Robinson wrote: The version of WebKit used by Safari 5.0.3 is rather antiquated at this point. Using the latest WebKit nightly build, or Chrome 10.0.648.45 dev (which has a significantly newer version of WebKit), I get #ff and rgba(0, 0, 0, 0.0) on the first test a

Re: [whatwg] Canvas feedback (various threads)

2011-02-10 Thread James Robinson
On Thu, Feb 10, 2011 at 8:39 PM, Boris Zbarsky wrote: > On 2/10/11 11:31 PM, Ian Hickson wrote: > >> I think you had a typo in your test. As far as I can tell, all >> WebKit-based browsers act the same as Opera and Firefox 3 on this: >> >> >> http://software.hixie.ch/utilities/js/canvas/?c.clearR

Re: [whatwg] Canvas feedback (various threads)

2011-02-10 Thread Boris Zbarsky
On 2/10/11 11:31 PM, Ian Hickson wrote: I think you had a typo in your test. As far as I can tell, all WebKit-based browsers act the same as Opera and Firefox 3 on this: http://software.hixie.ch/utilities/js/canvas/?c.clearRect(0%2C%200%2C%20640%2C%20480)%3B%0Ac.save()%3B%0Atry%20%7B%0A%20%

Re: [whatwg] Canvas feedback (various threads)

2011-02-10 Thread Ian Hickson
On Thu, 10 Feb 2011, Boris Zbarsky wrote: > On 2/10/11 7:56 PM, Ian Hickson wrote: > > On Thu, 3 Feb 2011, Boris Zbarsky wrote: > > > > > > It looks like CSS rgba colors with an alpha value of 0 are serialized as > > > rgba() with "0" as the alpha value. in at least Gecko, Webkit, and > > > Presto

Re: [whatwg] Canvas feedback (various threads)

2011-02-10 Thread Boris Zbarsky
On 2/10/11 7:56 PM, Ian Hickson wrote: On Thu, 3 Feb 2011, Boris Zbarsky wrote: It looks like CSS rgba colors with an alpha value of 0 are serialized as rgba() with "0" as the alpha value. in at least Gecko, Webkit, and Presto. It also looks like canvas style color with an alpha value of 0 are

Re: [whatwg] Canvas feedback (various threads)

2011-02-10 Thread Tab Atkins Jr.
On Thu, Feb 10, 2011 at 4:56 PM, Ian Hickson wrote: > Looking at that demo, it seems that premultiplied removes possible options > from the author. How do you go from red to actually transparent black, > getting darker as you transition? Do you have to give a nearly-transparent > black (alpha=0.01

Re: [whatwg] Canvas feedback (various threads)

2011-02-10 Thread Ian Hickson
On Thu, 3 Feb 2011, Boris Zbarsky wrote: > > It looks like CSS rgba colors with an alpha value of 0 are serialized as > rgba() with "0" as the alpha value. in at least Gecko, Webkit, and > Presto. > > It also looks like canvas style color with an alpha value of 0 are > serialized as rgba() wit

Re: [whatwg] Canvas feedback (various threads)

2010-11-15 Thread Charles Pritchard
On Sun, 3 Oct 2010, Charles Pritchard wrote: Having worked quite awhile with WebApps APIs, Canvas included, I've concluded that HTML can be implemented within the web stack. It's my firm belief that the Web Apps specifications can and should be proven complete. If by "complete" you mean "self-ho

Re: [whatwg] Canvas feedback (various threads)

2010-11-15 Thread Ian Hickson
On Wed, 11 Aug 2010, Philip Taylor wrote: > On Wed, Aug 11, 2010 at 9:35 PM, Ian Hickson wrote: > > On Thu, 29 Jul 2010, Gregg Tavares (wrk) wrote: > >> source-over > >>    glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA); > > > > I tried searching the OpenGL specification for either glBlendFunc or >

Re: [whatwg] Canvas feedback (various threads)

2010-10-03 Thread Charles Pritchard
On 8/11/2010 1:35 PM, Ian Hickson wrote: On Tue, 10 Aug 2010, Charles Pritchard wrote: I've worked on a substantial amount of code dealing with text editing. At present, the descent of the current font has been the only deficiency. I feel that using Canvas to implement HTML5/CSS provide

Re: [whatwg] Canvas feedback (various threads)

2010-08-12 Thread Boris Zbarsky
On 8/12/10 10:59 AM, David Flanagan wrote: But if you don't talk about the algebraic operations then you haven't really defined what a transformation is, have you? Given that the input is in coordinates, we need to talk about algebraic operations to define the transformation on vectors those c

Re: [whatwg] Canvas feedback (various threads)

2010-08-12 Thread David Flanagan
Boris Zbarsky wrote: On 8/11/10 5:42 PM, David Flanagan wrote: I think that the sentence "The transformations must be performed in reverse order" is sufficient to remove the ambiguity in multiplication order. It is? It sounds pretty confusing to me... reverse from what? I agree that it is c

Re: [whatwg] Canvas feedback (various threads)

2010-08-11 Thread Boris Zbarsky
On 8/11/10 4:35 PM, Ian Hickson wrote: On Mon, 19 Jul 2010, Boris Zbarsky wrote: I do think the spec could benefit from an example akin to the one in the CoreGraphics documentation. I followed your references but I couldn't figure out which example you meant. What exactly do you think we shou

Re: [whatwg] Canvas feedback (various threads)

2010-08-11 Thread Boris Zbarsky
On 8/11/10 5:42 PM, David Flanagan wrote: I think that the sentence "The transformations must be performed in reverse order" is sufficient to remove the ambiguity in multiplication order. It is? It sounds pretty confusing to me... reverse from what? The right way to specify what happens when

Re: [whatwg] Canvas feedback (various threads)

2010-08-11 Thread Charles Pritchard
> On Tue, 10 Aug 2010, Charles Pritchard wrote: >>> >>> I recommend not using for text editing. >> >> I've worked on a substantial amount of code dealing with text editing. >> At present, the descent of the current font has been the only >> deficiency. > > Well, there's also the way it does

Re: [whatwg] Canvas feedback (various threads)

2010-08-11 Thread David Flanagan
Ian Hickson wrote: On Mon, 19 Jul 2010, David Flanagan wrote: Even changing the argument names to neutral a,b,c,d,dx,dy would be better than what is there currently. Done. Thanks On Mon, 19 Jul 2010, David Flanagan wrote: While I'm harping on the transform() method, I'd like to point ou

Re: [whatwg] Canvas feedback (various threads)

2010-08-11 Thread Philip Taylor
On Wed, Aug 11, 2010 at 9:35 PM, Ian Hickson wrote: > On Thu, 29 Jul 2010, Gregg Tavares (wrk) wrote: >> source-over >>    glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA); > > I tried searching the OpenGL specification for either glBlendFunc or > GL_ONE_MINUS_SRC_ALPHA and couldn't find either. Could

[whatwg] Canvas feedback (various threads)

2010-08-11 Thread Ian Hickson
On Mon, 19 Jul 2010, David Flanagan wrote: > The spec describes the transform() method as follows: > > > > The transform(m11, m12, m21, m22, dx, dy) method must multiply the > > current transformation matrix with the matrix described by: > > > > m11 m21 dx > > m12 m22 dy > > 0 0 1 >

Re: [whatwg] Canvas feedback

2009-04-28 Thread Ian Hickson
On Thu, 26 Mar 2009, Biju wrote: > On Wed, Mar 25, 2009 at 3:11 AM, Ian Hickson wrote: > > On Sat, 14 Mar 2009, Biju wrote: > >> > >> Just like canvas.getImageData() and canvas.putImageData() > >> > >> Why canvas.getImageHSLData() and canvas.putImageHSLData() API are not > >> provide? Is it somet

Re: [whatwg] Canvas feedback

2009-03-25 Thread Biju
On Wed, Mar 25, 2009 at 3:11 AM, Ian Hickson wrote: > On Sat, 14 Mar 2009, Biju wrote: >> >> Just like canvas.getImageData() and canvas.putImageData() >> >> Why canvas.getImageHSLData() and canvas.putImageHSLData() API are >> not provide? Is it something discussed and planned not have? > > In prac

[whatwg] Canvas feedback

2009-03-25 Thread Ian Hickson
On Fri, 13 Mar 2009, Hans Schmucker wrote: > > This problem recently became apparent while trying to process a public > video on tinyvid.tv: > > In article 4.8.11.3 "Security with canvas elements", the origin-clean > flag is only set depending on an element's origin. However there are > many sc