W3C home > Mailing lists > Public > www-style@w3.org > February 2011

Re: :click pseudo element

From: Jonas Hartmann <j0n4s.h4rtm4nn@googlemail.com>
Date: Mon, 7 Feb 2011 22:00:31 +0100
Cc: Tab Atkins Jr. <jackalmage@gmail.com>, thomasin a <nevereatredjellybeans@gmail.com>, www-style@w3.org
Message-Id: <8DF827B5-76F6-4E47-9E74-BA0B563D47A8@googlemail.com>
To: Brad Kemper <brad.kemper@gmail.com>

On 2011-02-07, at 19:20, Brad Kemper wrote:

>> It'd be nice to have a way to replicate radio-button behavior. Something like:
> 
> a:clicked(odd) { /* on state */ }
> a:clicked(even) { /* off state */ }

:focus might work for links and for radio buttons maybe input[selected="selected"] works..

> ... where only a mouse-up counted as as 'clicked'. 
no idea with this one.
> 
> Although it would be better if there was some sort of actual binary state that could be attached to any element and styled.

I fully agree with that. Having distinct states which can be styled is a clean approach.
Received on Monday, 7 February 2011 21:01:08 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:37 GMT