You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having an issue with my compiled CSS with selectors being transformed into an :is selector. The :is selector will change the specificity to match the highest in it's list. A common pattern I use is creating tag and class selectors to style my headers as shown below. This makes it easy apply different header styles to different tags that don't necessarily match.
Instead of using the styles from the .h1 selector, which should be the highest specificity, it is instead taking the styles from :is(h2, .h2), which is the compiled result.
The text was updated successfully, but these errors were encountered:
I'm having an issue with my compiled CSS with selectors being transformed into an
:is
selector. The:is
selector will change the specificity to match the highest in it's list. A common pattern I use is creating tag and class selectors to style my headers as shown below. This makes it easy apply different header styles to different tags that don't necessarily match.Instead of using the styles from the
.h1
selector, which should be the highest specificity, it is instead taking the styles from:is(h2, .h2)
, which is the compiled result.The text was updated successfully, but these errors were encountered: