Re: [selectors] applying pseudo classes to the label based on the labeled control

On Wed, Nov 26, 2014 at 4:00 PM, Florian Rivoal <florian@rivoal.net> wrote:
>> On 27 Nov 2014, at 00:52, Tab Atkins Jr. <jackalmage@gmail.com> wrote:
>> On Wed, Nov 26, 2014 at 2:26 PM, Florian Rivoal <florian@rivoal.net> wrote:
>>>> On 20 Nov 2014, at 18:17, Florian Rivoal <florian@rivoal.net> wrote:
>>>> Having this apply to the input pseudo classes[2] might make sense as well.
>>>
>>> However, I forgot to bring this part up. What does everyone think?
>>
>> They don't currently apply in either direction, do they?
>
> No, they don’t. The label->control direction is nonsensical, but the control->label is the one I am suggesting could be useful.
>
> You could then style the label of a disabled input, of an invalid input, a required input, etc.

Yeah, I get the use-cases.  Makes sense to suggest, I suppose.

~TJ

Received on Thursday, 27 November 2014 00:07:30 UTC