Re: CSSStyleDeclaration#length and shorthands.

On 1/31/12 2:09 PM, Glenn Adams wrote:
> My current thinking, on which I would like to hear from other
> commenters, is that CSSStyleDeclaration.length should include all
> non-ignored shorthand properties that are declared in the associated CSS
> declaration block

Some UAs only store longhand properties.

; i.e., if CSSStyleDeclaration.cssText includes 5
> non-ignored properties, of either longhand or shorthand form, then
> length should be 5.

And .cssText will collapse longhands into shorthands, if possible. 
Which it's not always.

-Boris

Received on Tuesday, 31 January 2012 19:13:55 UTC