Re: Should IE drop currentStyle/ runtimeStyle?

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

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

-Boris

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