W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2014

Re: [whatwg] relationship between labeled control and label for :active and :hover pseudos

From: Ryosuke Niwa <rniwa@apple.com>
Date: Fri, 14 Nov 2014 12:34:21 -0800
Message-id: <7C33E8A0-E482-401E-9D3D-08DE3B65A7E9@apple.com>
To: Boris Zbarsky <bzbarsky@mit.edu>, Florian Rivoal <florian@rivoal.net>
Cc: whatwg@lists.whatwg.org
On Nov 10, 2014, at 2:48 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:

> On 11/10/14, 5:31 PM, Florian Rivoal wrote:
>> That said, the labeled control also maintains a list of references to the associated labels, so there is no particular difficulty involved in finding them.
> The difficulty is not finding them.  The difficulty is efficiently updating hover state on the set of ancestors of all the nodes involved, some of which might still be in hover state when the control ceases to be.

Indeed.  It appears to me that this use case can be solved by the proposed :has() relational pseudo class as long as the author has structured so that the label is an ancestor of the input control itís associated with: http://dev.w3.org/csswg/selectors4/#relational

Given that, I donít find it compelling to natively support this behavior in the browser.

- R. Niwa
Received on Friday, 14 November 2014 20:34:47 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:26 UTC