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: Wed, 26 Nov 2014 23:26:54 +0100
Message-Id: <DB9EE50E-564C-4FE7-8659-A9E30601123C@rivoal.net>
To: www-style list <www-style@w3.org>

> On 20 Nov 2014, at 18:17, Florian Rivoal <florian@rivoal.net> wrote:
> 
> [selectors] gives to the host language the ability to define additional ways for :hover and :active to match (other than being the directly hovered or active element, or its parents). HTML uses that to make the state apply to a labeled control if it applies to its label (<label for=“foo”> and <button id=“foo”>).
> 
> I believe that having this work in the other direction as well (apply to the label if it applies to its labeled control) would make plenty of sense, and that it should apply (at least to) to :hover, :active, and the :has-focus pseudo-class currently being discussed in another thread[1].

Today we resolved on this.

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

 - Florian
Received on Wednesday, 26 November 2014 22:27:20 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:26 UTC