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 not sure if this is the implementation of Google Chrome or part of the spec (bug or feature).
I would like this to work, it seems this should work, but it doesn't:
When properties are used directly in nested at-rules, they act as if they were nested in a & { ... } block. (#conditionals) However, the & nesting selector cannot represent pseudo-elements. (#nest-selector)
As a result, the rule nested in the media query will be invalid:
I agree this can be confusing to authors, but as Issue 2 the spec say:
We’d like to relax this restriction, but need to do so simultaneously for both :is() and &, since they’re intentionally built on the same underlying mechanisms. (Issue 7433)
I'm not sure if this is the implementation of Google Chrome or part of the spec (bug or feature).
I would like this to work, it seems this should work, but it doesn't:
Preferred (not working)
Working version with duplicate
@media screen
and&::after {
https://www.w3.org/TR/css-nesting-1/
The text was updated successfully, but these errors were encountered: