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 02:53:36 -0800
To: Florian Rivoal <florian@rivoal.net>
CC: James Craig <jcraig@apple.com>, Fred Esch <fesch@us.ibm.com>, www-style list <www-style@w3.org>
Message-ID: <D0D2449B.930B8%bruno@hexanet.net>

On 1/7/15 2:01 AM, "Florian Rivoal" <florian@rivoal.net> wrote:
>> On 07 Jan 2015, at 10:48, Bruno Racineux <bruno@hexanet.net> wrote:
>> Are you saying we can't do: parent:has( child:focus ) {}?
>Correct, you can't do that in CSS, which is (one of the reasons) why we
>introduced "parent:focus-within {...}"

Ok. Makes sense. Very useful, as long as focus fires correctly or at all.
iOS is real pain with this. Not only it doesn't focus by default on Touch,
but it won't get out of Focus on Touch out, which somewhat defeats

Unless all platform align with this[1], focus remains inconsistent:

[1] http://patrickhlauke.github.io/touch/tests/results/
Received on Wednesday, 7 January 2015 10:54:06 UTC

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