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

Re: CSSStyleDeclaration#length and shorthands.

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 31 Jan 2012 14:13:28 -0500
Message-ID: <4F283D58.7070408@mit.edu>
To: www-style@w3.org
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 GMT

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