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

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

-Boris

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