← #111 Ignore case sensitivity in a CSS attribute selector

Combine styles with the :is pseudo-class selector

Topics: CSS

The :is pseudo-class selector applies the styles for any element that matches a selector listed in the arguments.

Rather than writing separate selectors:

header a:hover,
nav a:hover,
footer a:hover
text-decoration: underline;

We can combine them into a single one as following:

:is(header, nav, footer) a:hover {
text-decoration: underline;
Fix a typo or suggest an improvement
#113 Create an one-time event handler