W3C home > Mailing lists > Public > www-style@w3.org > March 1999

Re: a simple question

From: Ian Hickson <py8ieh@bath.ac.uk>
Date: Tue, 9 Mar 1999 12:38:03 +0000 (BST)
To: "Braden N. McDaniel" <braden@endoframe.com>
cc: Ignacio Javier <ignacio.gomez@dicoruna.es>, Todd Fahrner <fahrner@pobox.com>, www-style@w3.org
Message-ID: <Pine.GSO.4.04.9903091231440.15261-100000@amos.bath.ac.uk>

I wrote:
>> The answer with 'color' and 'background-color' is to *always* specify
>> them together, and *never* use 'background-color: transparent'.

Braden wrote:
> There is no reason not to use "background-color: transparent" as
> long as you know what the underlying background is.

Absolutely. Unfortunately, you never know what the underlying
background is, because of user stylesheets.

Why do you think lints complain when you don't specify a
background-color for your color? It is because then the
background-color will be transparent (initial value, background-color
is not inherited), and so it could clash with the user stylesheet.


> (that is, you have set it elsewhere)

There is no guarantee that any rules you write will not be overridden
by a user stylesheet.


Todd wrote:
> I think the solution depends on a somewhat fuzzy notion of
> "reasonable and prudent" rather than on some algorithm being
> implemented flawlessly.

Yes, I think this is about the only workable solution. 


-- 
Ian Hickson 
U+2642 U+2651
U+262E U+2603 U+263A
Received on Tuesday, 9 March 1999 07:38:47 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:53:58 GMT