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

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

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 21 Mar 2013 13:38:27 -0700
Message-ID: <CAAWBYDAVnr+33BKLC2UK8HNL=we6GBgGt8Snz78G57FUbSYfug@mail.gmail.com>
To: Elliott Sprehn <esprehn@gmail.com>
Cc: Fran├žois REMY <francois.remy.dev@outlook.com>, "www-style@w3.org" <www-style@w3.org>
On Thu, Mar 21, 2013 at 1:34 PM, Elliott Sprehn <esprehn@gmail.com> wrote:
> Ah, I did miss that. Still, there's the reference combinator or the subject
> selector.
>
> !.foo .viewport .list:max-width(...) { display: table; }
>
> This means in the middle of layout we need to tear down your ancestor and
> start over. This would let you construct an infinite loop as well.
>
> Or we can just express my earlier example as:
>
> !.foo + .viewport .list:max-width(...) { display: table; }

Yup, you're right.  In that case, we would want an explicit scoping to
occur.  This needs more baking.

~TJ
Received on Thursday, 21 March 2013 20:39:14 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:07 GMT