W3C home > Mailing lists > Public > www-style@w3.org > September 2009

Re: Should IE drop currentStyle/ runtimeStyle?

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 22 Sep 2009 20:23:32 -0400
Message-ID: <4AB96A84.4080201@mit.edu>
To: Travis Leithead <travil@microsoft.com>
CC: Garrett Smith <dhtmlkitchen@gmail.com>, www-style CSS <www-style@w3.org>, Sylvain Galineau <sylvaing@microsoft.com>, Sharon Cohen <sharco@microsoft.com>
On 9/22/09 3:21 PM, Travis Leithead wrote:
> This makes it seem like developers just want "some" value for a style, but aren't looking specifically for a computed/cascaded value. That's actually what I want to discover--is this true? Are there specific needs to get both the computed value and the cascaded style? Or do developer care?

So in practice, when people get the "computed" style for some properties 
(width, especially) via getComputedStyle they actually expect something 
closer to "used" style (or CSS2 computed style, which is different from 
CSS2.1 computed style).

We (Gecko) have heard a number of requests or a getCascadedStyle or 
equivalent.  I think it would be worth agreeing on an API for that and 

As for computed vs used style, I'm not quite sure what authors want 
there (or even whether most of them understand the difference).

Received on Wednesday, 23 September 2009 00:24:21 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:39 UTC