W3C home > Mailing lists > Public > www-style@w3.org > August 2011

Re: [css3-images] July F2F minutes comment regarding SVG and non-opaque colors

From: Cameron McCormack <cam@mcc.id.au>
Date: Fri, 19 Aug 2011 10:36:30 +1200
Message-ID: <4E4D93EE.9080504@mcc.id.au>
To: Brian Manthos <brianman@microsoft.com>
CC: "www-style@w3.org" <www-style@w3.org>
Seattle 2011 F2F minutes:
> * ed wonders what this meant:"TabAtkins: No. SVG doesn't have alpha colors."
>   (most if not all browsers already support rgba/hsla syntax in svg
>   colors/gradients, also there's stop-opacity in svg gradients)

On 19/08/11 9:17 AM, Brian Manthos wrote:
> I just happened to notice the commentary above.
>
> I believe Tab was referring to this:
>
> http://www.w3.org/TR/SVG/color.html
>
> which links to <color> here:
>
> http://www.w3.org/TR/SVG/types.html#DataTypeColor
>
> which says
>
> # The basic type <color> is a CSS2 compatible specification for a color
> in the sRGB color space [SRGB
> <http://www.w3.org/TR/SVG/refs.html#ref-SRGB>].
>
> In short SVG 1.1’s <color> maps to CSS2 (which does not include rgba and
> hsla) rather than CSS3 (which does).

It's true that SVG 1.1's <color> definition doesn't technically allow 
rgba() colours, but it would be interesting to see what implementations 
do with it currently to know whether this is compatible with Image 
Values' definitions.  Also whether this behaviour is the same as an SVG 
gradient where some stops have non-zero stop-opacity property values.
Received on Thursday, 18 August 2011 22:36:59 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:43 GMT