Serializing gradient function

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).

-- 
Rafal Chlodnicki
Opera Software

Received on Wednesday, 12 January 2011 08:58:14 UTC