[Bug 15413] <label> :checked state should reflect the input's one

https://www.w3.org/Bugs/Public/show_bug.cgi?id=15413

--- Comment #2 from Tab Atkins Jr. <jackalmage@gmail.com> 2012-01-05 23:04:15 UTC ---
This can be addressed with some new additions in Selectors 4, without any
necessary change to HTML.

If you have <label for>, it can be done with a selector like "label! /for/
:checked".  This uses the reference combinator ("/for/"
<http://dev.w3.org/csswg/selectors4/#idref-combinators>) to link the label to
its input, and uses the subject indicator ("!"
<http://dev.w3.org/csswg/selectors4/#subject>) to indicate you're trying to
select the label, not the input.

If you have a plain <label> that contains its input, you can use "label!
:checked", again using the subject indicator to select the label instead of the
input.

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Thursday, 5 January 2012 23:04:17 UTC