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
Pseudo-elements are not valid within the :is() selector.
.foo:is(::before) {
color: green;
}
This is also not valid in CSS nesting, so you should print a warning when the same situation is encountered when nesting.
This is a clear departure from the traditional CSS preprocessor(SCSS/Less), and as CSS nesting becomes more widely implemented in browsers, more and more authors will be confused(see #352), even developers of browser engines: https://issues.chromium.org/issues/40278599
So we should explicitly tell them that they can't write this way in browsers at the moment.
The text was updated successfully, but these errors were encountered:
input
output
expected
Prints a warning:
Pseudo-elements are not valid within the :is() selector.
This is also not valid in CSS nesting, so you should print a warning when the same situation is encountered when nesting.
This is a clear departure from the traditional CSS preprocessor(SCSS/Less), and as CSS nesting becomes more widely implemented in browsers, more and more authors will be confused(see #352), even developers of browser engines: https://issues.chromium.org/issues/40278599
So we should explicitly tell them that they can't write this way in browsers at the moment.
The text was updated successfully, but these errors were encountered: