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

Re: Conditional CSS sections based on property support

From: David Woolley <david@djwhome.demon.co.uk>
Date: Wed, 6 Apr 2005 06:39:17 +0100 (BST)
Message-Id: <200504060539.j365dHP02684@djwhome.demon.co.uk>
To: www-style@w3.org

> If that's how it will be done, I think setting the foreground color of text 
> to the same color as its background should be considered effective. Who 

The thinking here was about the cascade.  A style rule may be ineffective
because an !important rule or a later rule overrides it.

It might also be ineffective becaue a non-CSS browser rule (e.g. the
minimum contrast rule that I proposed, but was rejected because it would
only be usefully used in the browser configuration) made it ineffective.
In the example given, the browser might have a colour-blindness rule that
prevented red on green, or may know it has a monochrome display and
not consider the contrast rule.

These non-CSS rule examples will actually correct for the typical
failure to set the background colour when changing foreground, of course. 

Incidentally setting foreground and background colour to the same
using legacy methods reportedly reduces search engine rankings as it
is perceived as an attempt to stuff invisible keywords (which 
often really is the case).  I'm not sure how good search engines are at
interpreting the effects of CSS in this respect.

The correct way to make content invisible is visibility: none, but even
that could be interpreted as a keyword stuffing attempt, on the other hand
it might be seen as honest by a CSS aware indexer and simply cause the
invisible text to be ignored for indexing purposes.
Received on Wednesday, 6 April 2005 05:43:38 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:17 UTC