W3C home > Mailing lists > Public > www-style@w3.org > March 2013

Re: The :min-width/:max-width pseudo-classes

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Fri, 22 Mar 2013 08:45:25 -0400
Message-ID: <514C5265.9020608@mit.edu>
To: www-style@w3.org
> I'd love to hear thoughts from other implementors. :)

It's very common for parts of the browser of the web platform to ask for 
updated style information but not updated layout information.  This 
happens a lot for things that want up-to-date render object _types_ but 
not their layout, as well as for getComputedStyle in various cases.

But with this proposal, that sort of thing becomes impossible to some 
extent: asking for up-to-date style information either always requires 
layout or requires explicitly specifying which set of elements you need 
it for, so that the UA can determine that they're inside one of these 
viewport things and perform layout accordingly, right?

This seems like it might be a significant deoptimization...

(On the other hand, maybe UAs can just return incorrect answers for this 
stuff?  I seem to recall that's what some UAs do already with <iframe>...)

Received on Friday, 22 March 2013 12:45:58 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:27 UTC