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

Re: [selectors] css4 focus-within

From: Bruno Racineux <bruno@hexanet.net>
Date: Wed, 07 Jan 2015 01:48:49 -0800
To: Florian Rivoal <florian@rivoal.net>, James Craig <jcraig@apple.com>
CC: Fred Esch <fesch@us.ibm.com>, W3C WAI Protocols & Formats <public-pfwg@w3.org>, www-style list <www-style@w3.org>
Message-ID: <D0D2406A.9308B%bruno@hexanet.net>
>On 1/6/15 2:09 PM, "Florian Rivoal" <florian@rivoal.net> wrote:
>
>>
>>So you'd write *:has( *:focus ) {}
>>
>>1) :has() is not part of the "fast profile" [2], meaning :has is not
>>available for CSS selection, only for things like query() method, so it
>>cannot be used here
>

Are you saying we can't do: parent:has( child:focus ) {}?

Would we still have to use javascript and do: parent:has( child.active )
{}?

Could you elaborate with a few examples on what can be done and what can't?
Not sure what you mean entirely by "not available for CSS selection".


-Bruno
Received on Wednesday, 7 January 2015 09:49:18 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:51:56 UTC