W3C home > Mailing lists > Public > www-style@w3.org > May 2004

Re: Colour gradient backgrounds.

From: Max Romantschuk <max@provico.fi>
Date: Tue, 11 May 2004 08:18:53 +0300
Message-ID: <40A0623D.5070007@provico.fi>
To: www-style@w3.org

Ernest Cline wrote:
> However, I don't like the idea of piggybacking onto 'background-color'.
> It will not be desirable to make gradients something generic to <color>.
> if gradients are introduced in CSS, they should be done with a new
> property (or properties) rather than complicating the definition of an
> existing property.

Then again, a gradient used for a background not using a 'background-*' 
property would be somewhat fuzzy. An example:

background-color:  #AABBCC;
background-image:  url(an_image.gif);
'gradient-property': *rules go here*;


If a gradient property were introduced I feel it would be logical to do 
one of two things:

1. Make it a background-* property, background-gradient for example.
2. Implement gradients in the color module (altough this would cause 
problems in mixing in positioning traits in the color module.)


I still feel that gradients don't really belong in CSS though. PNG is 
fine for vertical and horizontal gradients, and SVG will do the rest. 
CSS based gradients might make things easier in some ways, but would 
they really promote usability and acessibility? Gradient use in general 
are seldom showcases of stellar design.


-- 
Max Romantschuk
http://max.nma.fi/
Received on Tuesday, 11 May 2004 01:19:32 GMT

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