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

Re: Comments on gradients proposal

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 20 Oct 2009 17:14:13 -0500
Message-ID: <dd0fbad0910201514v1d798fbfn7fcb2df491367087@mail.gmail.com>
To: robert@ocallahan.org
Cc: www-style <www-style@w3.org>
On Tue, Oct 20, 2009 at 4:57 PM, Robert O'Callahan <robert@ocallahan.org> wrote:
> On Wed, Oct 21, 2009 at 2:08 AM, Tab Atkins Jr. <jackalmage@gmail.com>
> wrote:
>> Yup.  Can you suggest any way to phrase that better?  Basically the
>> idea is just that the gradient-line is as long as possible while the
>> perpendicular is still intersecting the box.  It may be best to
>> rewrite it something like that.
> I'm not sure of the best way to word that.

Hmm, k.  I'll think on it a bit.

> Another question:
>> <angle> is from the Values Module, and has the same definition; if
>> relevant, the angle is normalized to within the range [0,360deg).
> If it's omitted, what's the default? 0?

If it's omitted, it's covered by a different paragraph (there's one
paragraph for each of the four provided/omitted possibilities, as the
intuitive defaults change):

> If the <angle> is omitted in the first argument, the <bg-position> specifies the starting-point of the gradient-line. The ending-point is obtained by rotating the starting-point 180 degrees around the center of the box. For example, specifying "right" would place the starting-point in the center of the right edge of the box (as described by Backgrounds and Borders) and the ending-point in the center of the left edge, producing a horizontal gradient that went from right to left. Specifying "top left" would place the starting-point in the top-left corner of the box, and the ending-point in the bottom-right corner of the box, and would produce a diagonal gradient. Specifying "left 10px" would place the starting-point at the left edge, 10px from the top and the ending-point on the right edge, 10px from the bottom - if you would like a horizontal gradient that start 10px in from the left edge, specify "10px center" or "left 10px center". Refer to the Backgrounds and Borders Module for more examples.

Received on Tuesday, 20 October 2009 22:15:05 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 11 February 2015 12:34:30 UTC