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

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

From: François REMY <francois.remy.dev@outlook.com>
Date: Fri, 22 Mar 2013 18:37:49 +0100
Message-ID: <DUB002-W149466C22971ADA70587C96A5D40@phx.gbl>
To: Tab Atkins Jr. <jackalmage@gmail.com>
CC: Boris Zbarsky <bzbarsky@mit.edu>, "www-style@w3.org" <www-style@w3.org>
> No, the problem is that a layout manager needs to be invoked at all to
> resolve selectors. If an internal API wants up-to-date styles but
> doesn't actually care about layout, right now it can do that by just
> resolving all the selectors and running the cascade. With the
> introduction of viewport-element-relative pseudoclasses, it needs to
> resolve layout, at least partially.

The question is: why would you want an up-to-date style? I may obviously not see all the cases myself, but my wild guess is that you only want that to prepare things like the composition layers or to create a preliminary box tree. If you consider the local viewport independent of the rest of the page, I guess that you end up with two layout trees for which you can start wondering about those things when the parent layout tree has already been computed only, since neither the composition layers or the box trees need to cross the local viewport boundaries.

As I said, it doesn't matter if in some cases the :min-width matching isn't perfectly consistent, I'm almost sure that, right now, if you use <iframe>s, @keyframes and @media queries together you can end up in situations where what is shown on the screen isn't quite exact but is exact enough for you not to see anything of the wrongness (ie: mismatch-time <= time-between-frames). 		 	   		  
Received on Friday, 22 March 2013 17:38:20 UTC

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