The :focus-within
CSS pseudo-class matches an element if the element or any of its descendants are focused. In other words, it represents an element that is itself matched by the :focus
pseudo-class or has a descendant that is matched by :focus
. (This includes descendants in shadow trees.)