Re: Serializing gradient function

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 UTC