W3C home > Mailing lists > Public > www-svg@w3.org > May 2005

[SVGMobile12] Interaction of rgba() and -opacity="" should be defined

From: Ian Hickson <ian@hixie.ch>
Date: Fri, 20 May 2005 13:52:59 +0000 (UTC)
To: www-svg@w3.org
Message-ID: <Pine.LNX.4.61.0505201346150.12543@dhalsim.dreamhost.com>

The CSS 'color' property can include a fractional opacity component (in 
CSS3), as can the values of the CSS2 system colors (in CSS2).

Since the 'color' property is referencable from SVG (via currentColor), 
and since SVG allows the CSS2 system colors on its attributes, and also 
since when SVG is implemented in a CSS3 UA the <color>-capable properties 
will also take rgba(), etc, please define how a colour with an alpha 
component must be handled when used where SVG explicitly gives a related 
-opacity property.

I can see several options:

 * drop the alpha on the color, use only the -opacity.
 * drop the -opacity, use only the alpha, unless the alpha is 1.0.
 * combine the alpha and the -opacity in some defined way.

The latter would be my recommendation.

Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Friday, 20 May 2005 13:53:12 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:47:03 UTC