W3C home > Mailing lists > Public > www-style@w3.org > October 2005

Re: Styling by attribute-based association?

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 25 Oct 2005 20:02:39 +0000 (UTC)
To: David Hyatt <hyatt@apple.com>
Cc: Matthew Raymond <mattraymond@earthlink.net>, W3C CSS <www-style@w3.org>
Message-ID: <Pine.LNX.4.62.0510252001010.6813@dhalsim.dreamhost.com>

On Tue, 25 Oct 2005, David Hyatt wrote:
>
> Another (IMO simpler) idea would be to just have label match the same 
> pseudo-classes that the control does, i.e., if a checkbox is :checked, 
> then the label can match :checked too.  Same for :disabled, :enabled, 
> :indeterminate, and :focus.  I don't see any reason to introduce new 
> selectors to solve this problem.

That doesn't address all of Matthew's requests, and would be specific to 
<label>, not addressing similar problems with elements such as <map>, etc. 
But I agree that it might make sense too.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 25 October 2005 20:02:44 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:41 GMT