Safely Using the :has() Selector Today
Explore styling using :has() with :is() or :where() for fallbacks, and query support with @supports.
We'll cover the following...
Enhancing CSS with :has()
and fallbacks
As in the image grid example, :has()
can be a progressive enhancement— meaning that, if the unique arrangement styles don’t apply due to lack of browser support for :has()
, the grid will still be functional, just less refined.
Additionally, remember that rules including ...