microsoft / vscode-css-languageservice

CSS, LESS & SCSS language service extracted from VSCode to be reused, e.g in the Monaco editor.
MIT License
318 stars 177 forks source link

Error when parsing @container with style queries #410

Open PupilTong opened 2 weeks ago

PupilTong commented 2 weeks ago

Does this issue occur when all extensions are disabled?: Yes/No

Steps to Reproduce:

https://developer.mozilla.org/en-US/docs/Web/CSS/@container#container_style_queries

Vscode reports a syntax error for @container with parentheses or comma in style queries, which is allowed in web standard.

Image

vs-code-engineering[bot] commented 2 weeks ago

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.94.2. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

PupilTong commented 2 weeks ago

The same issue could be reproduced in 1.94.2.

Also, using or after and could cause the same issue.

@container style(--bg-a:true) and style(--bg-b:true) or style(--bg-c:true) {
  div {
    background-color:blue;
  }
}
aeschli commented 1 day ago

Because style(...) is experimental, we don't have added support yet.