W3C home > Mailing lists > Public > www-style@w3.org > July 2015

Re: [selectors4] no way to select visible children

From: Benjamin Poulain <benjamin@webkit.org>
Date: Mon, 20 Jul 2015 17:37:56 -0700
To: Brad Kemper <brad.kemper@gmail.com>, "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: Marat Tanalin <mtanalin@yandex.ru>, Ms2ger <ms2ger@gmail.com>, Aaron Reisman <aaron@hired.com>, "www-style@w3.org" <www-style@w3.org>
Message-ID: <55AD9464.8070404@webkit.org>
On 7/20/15 5:28 PM, Brad Kemper wrote:
>> On Jul 20, 2015, at 4:13 PM, Tab Atkins Jr. <jackalmage@gmail.com> wrote:
>> The element() function is not handled in the middle of style
>> resolution, nor does it involve looping back and forth between
>> selector application and style resolution.
> But we do have :hover that is kind of like that.
> a:hover { display: none; }

That is a great example of mistakes we should try to avoid in the future :)

Looping over :hover can be ridiculously expensive and it is never 
providing a good user experience.

Received on Tuesday, 21 July 2015 00:39:14 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:52:18 UTC