W3C home > Mailing lists > Public > www-style@w3.org > December 2016

Re: [css3-selectors]: Proposal: :in-view() selector for better visibility control

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 5 Dec 2016 15:04:51 -0800
Message-ID: <CAAWBYDDTDa5d-O4dsrcYMQgH=6SfTd6e8j_9nck6ghPDsFz7xA@mail.gmail.com>
To: Alexander Shpack <shadowkin@gmail.com>
Cc: Daniel Glazman <daniel.glazman@disruptive-innovations.com>, www-style <www-style@w3.org>
On Thu, Dec 1, 2016 at 2:28 AM, Alexander Shpack <shadowkin@gmail.com> wrote:
>> Anyway, I don't think your proposal is doable because of infinite loops.
>
> Flexboxes also can lead to infinite loops, but we are seeing it in
> specification. :)

No, they can't. In degenerate cases nested flexboxes can cause a
change to result in an exponential number of layouts, but it's
absolutely not a loop.

This proposal, unfortunately, causes loops in precisely the same way
that :hover can cause loops, and browsers are loathe to repeat those
issues.

~TJ
Received on Monday, 5 December 2016 23:05:44 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:09:05 UTC