The CSS :has() pseudo class is finally supported by all major browsers, allowing styling of parent elements based on their children. It offers a lot of new possibilities and has been a much-awaited feature. Learn more about the :has() pseudo class on MDN.

1m read timeFrom dev.to
Post cover image

Sort: