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
{{ message }}
Repository navigation
@container rule being flagged as "unknownAtRules" when nested in SCSS #381
And @container is being flagged with Unknown at rule @containerscss(unknownAtRules). The expected behavior is nothing being flagged, as the code runs as expected.
This problem only applies when the rule is nested
Reacted by Josh Del Vecchio, Marco Scannadinari, N and Jimbo
changed the title [-]SCSS @container rule being flagged as "unknownAtRules"[/-][+]@container rule being flagged as "unknownAtRules" when nested in SCSS[/+]on Mar 9, 2024
Martin Aeschlimann (@aeschli) is that in regard to the current state of nesting in VS Code or the actual spec? Everything I can find reads that @container can be nested similar to other at rules. It also works in each browser I've tested that supports nesting.
Activity
marcoms commentedon Mar 4, 2024
This also applies when using native nested CSS which is now gaining adoption
Jethus commentedon Mar 8, 2024
Just commenting to say that I'm experiencing the same issue.
The code works as intended, just VS Code is flagging
@containerwithUnknown at rule @containerscss(unknownAtRules).[-]SCSS @container rule being flagged as "unknownAtRules"[/-][+]@container rule being flagged as "unknownAtRules" when nested in SCSS[/+]mdmoreau commentedon Apr 6, 2024
Martin Aeschlimann (@aeschli) should those updates be applied to the CSS parser as well? Getting some odd inconsistencies while using standard CSS:
aeschli commentedon Apr 8, 2024
Nested containers are only allowed in LESS and SCSS.
mdmoreau commentedon Apr 8, 2024
Martin Aeschlimann (@aeschli) is that in regard to the current state of nesting in VS Code or the actual spec? Everything I can find reads that
@containercan be nested similar to other at rules. It also works in each browser I've tested that supports nesting.https://www.w3.org/TR/css-nesting-1/#conditionals
https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_nesting/Nesting_at-rules