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

Re: Stand-in color before images load

From: Barry <wassercrats@hotmail.com>
Date: Wed, 30 Mar 2005 01:34:39 -0500
Message-ID: <BAY102-DAV87526AB4F6812149287E0B9460@phx.gbl>
To: <www-style@w3.org>

David Wolley said:
> If you set a foreground colour, you must set a background colour that 
> contrasts

How about contrast properties for text, such as "contrast: 50,50;" the first 
number being the minimum contrast and the second being the maximum, and 
"contrast-area: background-image;" in case you want only text that's against 
a background image to be set to the specified contrast, and "contrast-area: 
missing-background" to apply the contrast only when the background image 
couldn't be rendered. You could go further by specifying whether to average 
out the contrast to keep every foreground pixel color the same in the 
contrast-area, or to make it pixel-perfect so every pixel is within the 
specified contrast range no matter the background color.

In addition to the missing-image application, with the right scripting the 
client would be able to adjust the contrast as he wishes. 
Received on Wednesday, 30 March 2005 06:35:01 UTC

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