Re: Styling by attribute-based association?

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 UTC