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

RE: Gradient syntax proposal

From: David Perrell <davidp@hpaa.com>
Date: Sat, 15 Aug 2009 17:42:26 -0700
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: "Brad Kemper" <brad.kemper@gmail.com>, "Andrew Fedoniouk" <news@terrainformatica.com>, "www-style list" <www-style@w3.org>
Tab Atkins Jr. wrote:
| Indeed, if you're sizing it.  Normally a gradient auto-sizes to the
| size of the box, though, so you don't have any problem with this.

Assuming a gradient is equivalent to an image and has background-repeat:no-repeat, I expect the gradient to clip to its background-size, allowing a larger underlying gradient to show through around the edges. And if a gradient's background-size is smaller than the background-clip dimensions and has background-repeat:repeat, I expect the gradient box to repeat as an image would. (This could actually be quite useful.)

David Perrell 
Received on Sunday, 16 August 2009 00:43:47 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:28 UTC