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

Re: Gradients in CSS3?

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Mon, 15 Aug 2005 18:06:19 +0200
To: Kevin Lawver <kplawver@aol.com>
Cc: WWW-Style <www-style@w3.org>
Message-ID: <ane1g1dgrgt5k7869mm8m2fnsba8bkp2kt@hive.bjoern.hoehrmann.de>

* Kevin Lawver wrote:
>I've been thinking about this for a while now, and I think the constructor
>should be more like url() than a property, so we could use gradients for
>more than backgrounds.  It should be something like:

<http://lists.w3.org/Archives/Public/www-style/2004Aug/0114.html>, a
functional notation like this one is also needed if you want to have
more than one gradient in an SVG document since background-image and
similar properties would render the SVG document rather than using
the paint server for rendering. This could be fixed in SVG but the
latest drafts don't propose anything like that. In fact, as you can
see from the thread above SVG Working Group participants don't think
this problem even exists (they are wrong of course).

If we add syntax for gradients to CSS we really should not limit the
feature to only two colors. I've suggested using @-rules to set up
gradients, http://lists.w3.org/Archives/Public/www-style/2004May/0184
which provides a more flexible and extensible syntax that matches the
SVG syntax more closely, helping those who want to use SVG and CSS
for gradients.



also has a simplified syntax for gradients, which allows for more
sophisticated control over start- and end-points, "LinearGradient
0.1,0.1 0.5,0.5 Blue Green".
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Monday, 15 August 2005 16:06:29 UTC

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