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

Re: Gradient color

From: Daniel Glazman <Daniel.Glazman@der.edfgdf.fr>
Date: Sun, 10 May 1998 07:22:10 +0100 (WET DST)
Message-Id: <199805100622.HAA27206@cli51ak.der.edf.fr>
To: lawranc5@airmail.net (Lawrance Family Member)
Cc: www-style@w3.org
> Is there any way to specify a gradient fill (as the color) for a document
> object?
> For example:
> BODY {
> color: red, green, horizontal;
> }

Not for the moment in a single property as shown. But I agree with you
it could be very useful and remove a lot of ugly calls to a background
image. I've already proposed the CSS+FP WG chair to discuss this topic
for CSS 3.

It could use a new functional notation for colors gradient() having
your three arguments : two colors and an angle. For instance :

  background-color : gradient(<color>, <color>, <angle>)

I am quite sure that background gradient colors can be handled by
browsers (well, even PowerPoint can do it !-) but I wonder if
foreground colors of this kind are not too complex or too dangerous
for performances to implement...

Received on Sunday, 10 May 1998 01:20:21 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:26:47 UTC