:is(h1, h2, h3) matches any listed selector. :where() is identical but contributes zero specificity (great for overridable defaults). :not(.active) matches everything except. Together they shorten selectors and tame specificity.
:is(h1, h2, h3) matches any listed selector. :where() is identical but contributes zero specificity (great for overridable defaults). :not(.active) matches everything except. Together they shorten selectors and tame specificity.
<!doctype html><html><head><meta charset="utf-8">
<style>:is(h1,h2,h3){color:#b388ff;font-family:sans-serif}p:not(.muted){color:#e6e0ff}.muted{color:#5a527a}</style></head><body style="background:#06040d;padding:20px"><h1>h1</h1><h2>h2</h2><p>normal</p><p class="muted">muted</p></body></html>▶ Open the interactive comic issue