- From: fantasai <fantasai.lists@inkedblade.net>
- Date: Tue, 30 Apr 2013 16:42:22 -0700
- To: "www-style@w3.org" <www-style@w3.org>
Forwarding message from Giorgio Liscio about an interesting use case... -------- Original Message -------- Subject: CSS3 suggestion about :focus state Date: Tue, 23 Apr 2013 23:05:19 +0200 From: Giorgio Liscio <giorgio.liscio@email.it> I really have to register myself to w3 mailing lists because I frequently have suggestions for you w3c people :) http://stackoverflow.com/questions/16170010 this question made me think about a pseudo-state selector that would be really useful as opposed to :hover, :focus is enabled only on "target" element (not on the whole parent tree of the focused element) that's the same behavior with "onfocus" and "onblur" dom events, that don't bubble up, as opposed to mouseover/out but in dom we have also "focusin" and "focusout" that do bubble up so, what about doing the same with css? like for example div:contains-focus thank you in advance, hoping to be helpful Giorgio -------- Original Message -------- Subject: Re: CSS3 suggestion about :focus state Date: Thu, 25 Apr 2013 22:32:43 +0200 From: Giorgio Liscio <giorgio.liscio@email.it> an answer on stackoverflow question let me notice the existence of the "selector subject" so, this '#foo div:contains-focus' would only be an alternative syntax to '#foo !div *:focus' ...I guess anyway if user agents implementors decide to not implement the !subject selector thing, it would be nice to have :contains-focus at least thank you Giorgio
Received on Tuesday, 30 April 2013 23:42:54 UTC