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

Re: Serializing gradient function

From: Simon Fraser <smfr@me.com>
Date: Wed, 12 Jan 2011 09:19:03 -0800
Cc: www-style@w3.org
Message-id: <0DDED162-CE6C-4DA8-BBAD-D3AFE89E261F@me.com>
To: Rafal Chlodnicki <rchlodnicki@opera.com>
On Jan 11, 2011, at 4:14 pm, Rafal Chlodnicki wrote:

> Given the linear-gradient(black, white) value for background property, should serialized value include implicit "top" gradient-line?
> 
> Quote from http://dev.w3.org/csswg/cssom/#css-values:
> 
> "Where CSS component values of the value can be omitted without changing the meaning of the value (e.g. initial values in shorthand properties), omit them. If this would remove all the values, then include the first allowed value.
> 
> That could apply here but not necessary as it's unclear if it applies to arguments of css functions too.
> 
> Currently, internal implementation in Opera does not return it. I can see that webkit's does (and Gecko's is not quite up to date so not sure if it's relevant).

<http://dev.w3.org/csswg/css3-images/> describes the serialization rules, and does state that the implicit 'top' should be included. This is what Mozilla and WebKit do now.

Simon
Received on Wednesday, 12 January 2011 17:35:48 GMT

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