[whatwg] New method for obtaining a CSS property

Boris Zbarsky bzbarsky at MIT.EDU
Thu Jan 27 10:22:34 PST 2011


On 1/27/11 4:48 AM, Brett Zamir wrote:
> I was thinking of it grabbing the "winning" property for the whole
> document, i.e., the one which would be applicable without knowing more
> contextual information. So, if the selector specified were ".error", it
> wouldn't get "div.error"

That's pretty difficult to define, actually.  Should it get ".error.error"?

> Whatever the rules, it would be the team's responsibility to ensure it
> was unique enough to provide the right value (as it is within CSS itself
> via cascading).

Why is just asking for computed style, and getting correct answers that 
include the results of the cascade, not the right solution here?

-Boris



More information about the whatwg mailing list