W3C home > Mailing lists > Public > www-svg@w3.org > March 2006

Re: SVG12: getRGBColorTrait vs non-SVGRGBColor

From: Andrew Shellshear <Andrew.Shellshear@cisra.canon.com.au>
Date: Thu, 09 Mar 2006 16:59:53 +1100
Message-ID: <440FC459.7050105@cisra.canon.com.au>
To: Bjoern Hoehrmann <derhoermi@gmx.net>
CC: Ola Andersson <Ola.Andersson@ikivo.com>, www-svg@w3.org, SVG WG <w3c-svg-wg@w3.org>

Bjoern Hoehrmann wrote:

>* Ola Andersson wrote:
>  
>
>>Thanks for finding this. The intent is that an exception should be
>>raised if the attribute is not an rgb color. The spec has now been
>>changed to remove the inconsistency.
>>    
>>
>
>This is now
>
>  The getRGBColorTrait is used to get the SVGRGBColor color. If the
>  actual trait value is not an SVGRGBColor, i.e. 'none' or a link to a
>  paint server (e.g. to a gradient or a solid-color), this method must
>  raise a DOMException with error code TYPE_MISMATCH_ERR and getTrait
>  should be used instead. setTrait must be used to set a color type that
>  is not an SVGRGBColor.
>
>It's not clear to me whether "system paint" keywords should be part of
>this list, could you clarify?
>  
>
We have changed the wording

"actual trait value is not an SVGRGBColor, i.e. 'none' or a link to a 
paint server (e.g. to a gradient or a solid-color), this method must..."
to

"actual trait value is not an SVGRGBColor, i.e. 'none' or a paint server 
(e.g. a gradient, system paint, or solid-color), this method must..."

Please let us know shortly if that does not address your concern.

Andrew.
Received on Thursday, 9 March 2006 06:00:05 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:34 GMT