Re: [whatwg] Question about gradient stops in canvas and parsing as CSS colors

2010-12-29 Thread Ian Hickson
On Wed, 22 Sep 2010, Boris Zbarsky wrote: Consider this code: gradient.addColorStop(1.0,rgba( 0, 0, 0, 0); where |gradient| is a canvas radial gradient. Note the lack of ')' at the end of the rgba string there. What's the correct behavior? The spec says: If the color

Re: [whatwg] Question about gradient stops in canvas and parsing as CSS colors

2010-12-29 Thread Boris Zbarsky
On 12/29/10 3:07 PM, Ian Hickson wrote: * Webkit simply doesn't implement CSS 2.1 section 4.2 correctly * Opera throws an exception from the addColorStop call above, but shows lime text if loading this: data:text/html,span style=color: rgb(0, 255, 0Lime/span * Gecko shows lime text in

Re: [whatwg] Question about gradient stops in canvas and parsing as CSS colors

2010-09-24 Thread Philip Taylor
On Wed, Sep 22, 2010 at 3:49 PM, Anne van Kesteren ann...@opera.com wrote: On Wed, 22 Sep 2010 16:47:02 +0200, Boris Zbarsky bzbar...@mit.edu wrote: Clearly I happen to think Gecko's behavior is the sane one here, but there's a clear interoperability problem either way.  Certainly Opera and

[whatwg] Question about gradient stops in canvas and parsing as CSS colors

2010-09-22 Thread Boris Zbarsky
Consider this code: gradient.addColorStop(1.0,rgba( 0, 0, 0, 0); where |gradient| is a canvas radial gradient. Note the lack of ')' at the end of the rgba string there. What's the correct behavior? The spec says: If the color cannot be parsed as a CSS color, then a SYNTAX_ERR

Re: [whatwg] Question about gradient stops in canvas and parsing as CSS colors

2010-09-22 Thread Anne van Kesteren
On Wed, 22 Sep 2010 16:47:02 +0200, Boris Zbarsky bzbar...@mit.edu wrote: Clearly I happen to think Gecko's behavior is the sane one here, but there's a clear interoperability problem either way. Certainly Opera and Gecko interpreted the spec differently. Might be the way we invoke the CSS