W3C home > Mailing lists > Public > www-style@w3.org > September 2009

radial-gradient() proposal

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Fri, 4 Sep 2009 19:53:24 -0500
Message-ID: <dd0fbad0909041753w25116c49v3b666c5867aade3b@mail.gmail.com>
To: www-style list <www-style@w3.org>
I'm finally happy with my radial-gradient() syntax.  You can view it
at http://www.xanthir.com/:4bhipd (scroll down past the
linear-gradient() examples).

Highlights are reusing *all* of the infrastructure from
linear-gradient (changing only the default values for <bg-position>
and <angle>), and then adding a second argument which takes two
keywords defining the shape and size of the gradient.  I think this
syntax will cover a large majority of radial gradient uses on the web
(unfortunately, radial gradients are much less common due to them
requiring much larger files), while being simple and easy to
understand and write.  Much thanks to David Perrell for giving me the
arguments that inspired this syntax.

Making examples for radial gradients is substantially more difficult
in GIMP than for linear gradients, so instead I'll be putting together
a generator for them this weekend, and will have examples
live-generated from the syntax afterwards.

Received on Saturday, 5 September 2009 00:54:28 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:13:39 UTC