W3C home > Mailing lists > Public > www-style@w3.org > January 2011

Re: Serializing gradient function

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 12 Jan 2011 10:01:21 -0800
Message-ID: <AANLkTinHSJ6AuYw7afAfvtPcF1W_outVD0uFLgvX+1D1@mail.gmail.com>
To: Rafal Chlodnicki <rchlodnicki@opera.com>
Cc: www-style@w3.org
On Wed, Jan 12, 2011 at 9:37 AM, Rafal Chlodnicki <rchlodnicki@opera.com> wrote:
> Given examples:
>  linear-gradient(top left, black, white)
>  linear-gradient(left top, black, white)
>
> if following citation from CSSOM spec again:
>
>  "Where multiple CSS component values can appear in any order without
> changing the meaning of the value (typically represented by a double bar ||
> in the value syntax), use the order as given in the syntax."
>
> both of these examples should have "linear-gradient(top left, black, white)"
> computed value as gradient syntax specifies them in that order:
>
>  [ [top | bottom] || [left | right] ]

Ooh, good example.  I don't think that that CSSOM clause applies,
actually (these aren't component values, they're function arguments),
but they should indeed serialize the same way.  I'll modify the
serialization algorithm to reflect that.

~TJ
Received on Wednesday, 12 January 2011 18:02:14 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:36 GMT