...

/

Limitations of the :has() Selector

Limitations of the :has() Selector

Learn about the limitations of the :has() selector.

To better understand what :has() can do, let’s quickly review the most impactful things it can’t do.

:has() isn’t a forgiving selector

Unlike the other relational pseudo-class selectors :is() and :where(), selectors within :has() must all be considered valid ...