The `:focus-within` Pseudo Class

May 16, 2017 3:42 pm Published by Leave your thoughts

Nice find by Ian Devlin:
The :focus-within pseudo class becomes active when an element itself has focus or if any of its descendants does.
Selecting a parent element based on children is lonnng awaited. The crown jewel of that is :has(). I wonder if that’s getting closer.

Tags: ,

Categorized in:

This post was written by hackya

Leave a Reply

Your email address will not be published. Required fields are marked *