W3C home > Mailing lists > Public > www-style@w3.org > November 2014

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

From: Florian Rivoal <florian@rivoal.net>
Date: Thu, 27 Nov 2014 01:00:49 +0100
Cc: www-style list <www-style@w3.org>
Message-Id: <8D12A3A6-22CF-4F3E-A96F-E046E4939CE4@rivoal.net>
To: "Tab Atkins Jr." <jackalmage@gmail.com>

> 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.

 - Florian
Received on Thursday, 27 November 2014 00:01:15 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:48 UTC