:where - CSS pseudo selector

:where - CSS pseudo selector

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;
}        


要查看或添加评论,请登录

Milap Patel的更多文章

社区洞察

其他会员也浏览了