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

> 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