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.

Direct Link to ArticlePermalink


The `:focus-within` Pseudo Class is a post from CSS-Tricks


Content Disclaimer 
This Content is Generated from RSS Feeds, if your content is featured and you would like to be removed, please Contact Us With your website address and name of site you wish to be removed from.

Note:
You can control what content is distributed in your RSS Feed by using your Website Editor.

Tech Shop Offers