Re: [selectors] css4 focus-within

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
:focus-within

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