:where - CSS pseudo selector
Milap Patel
Technical Manager | Node.js | React | JavaScript | AWS Certified Cloud Practitioner | PHP | WordPress | Front-end | MongoDB | MySQL
The :where() pseudo selector in CSS is functionally identical to the :is() psuedo selector in that it takes a comma-separated list of selectors to match against, except that where :is() takes the most specific among them as the specificity of that whole part, the specificity of :where() is always zero (0).
main :where(h1, h2, h3) {
? color: green;
}
Matches as if you wrote that selector like this:
main h1, main h2, main h3 {
? color: green;
}