W3C home > Mailing lists > Public > www-style@w3.org > February 2015

pseudo-class :target-within

From: Tobias Buschor <tobias.buschor@shwups.ch>
Date: Tue, 03 Feb 2015 09:31:39 +0000
Message-ID: <CAKdMxvcvAtTAmGpKdm9KhwJ3iZ5aMhk28mgyKpOG56zG66c=3Q@mail.gmail.com> (sfid-20150203_093146_000839_439E4462)
To: www-style@w3.org
Hello
Like :focus-within, i think this would be useful.
I use it simulated with javascript since years.

the two selectors are equivalent:
:focus-within
*:has(:focus)
Received on Tuesday, 3 February 2015 09:50:44 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:52:01 UTC