W3C home > Mailing lists > Public > www-style@w3.org > April 2010

Re: [css3-values] (Editorial) Possible contradiction with css3-color?

From: Tantek Celik <tantek@cs.stanford.edu>
Date: Sat, 10 Apr 2010 02:09:47 +0000
Message-ID: <957422421-1270865430-cardhu_decombobulator_blackberry.rim.net-230718236-@bda088.bisx.prod.on.blackberry>
To: "Alberto Lepe" <dev@alepe.com>,www-style-request@w3.org,www-style@w3.org
No the color property does not just affect text drawing, but also sets the initial value for the border-color property (via "currentColor") as well as the outline-color property on platforms that don't support the "invert" keyword[1]. It also applies to SVG.

Plus yes it sounds strange to not have the 'color' property in the Color module. That would lead to what is commonly termed a violation of expectation and would violate the principle of least surprise.

Tantek

[1] http://www.w3.org/TR/css3-ui/#outline-color0

 
-----Original Message-----
From: Alberto Lepe <dev@alepe.com>
Date: Sat, 10 Apr 2010 10:53:41 
To: <www-style@w3.org>
Subject: Re: [css3-values] (Editorial) Possible contradiction with css3-color?

Revising the Color Module document, I feel that "color" property
should not be included as part of the Color Module. It sounds strange,
I know, as the "color" property seems to be directly related to
"Color" type. However, "color" property only affects fonts. Without
any text, "color" property does not have any effect, am I right?
Actually it should be named "font-color" property IMHO. But "color"
its simpler, shorter and already known by everyone (so Its better to
keep it like that). My suggestion for the next revision would be to
move "color" property to the font module. In a similar way like
"background-color" or "border-color" are treated in "backgrounds and
borders" module.
I feel that the Color Module should focus mainly in the "Color" type,
and perhaps also in the "opacity" property (as it is now).

Received on Saturday, 10 April 2010 02:11:13 GMT

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