Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when parsing @container with style queries #410

Open
PupilTong opened this issue Oct 11, 2024 · 3 comments
Open

Error when parsing @container with style queries #410

PupilTong opened this issue Oct 11, 2024 · 3 comments
Assignees

Comments

@PupilTong
Copy link

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

  • VS Code Version: Version: 1.93.1
    Commit: 38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40
    Date: 2024-09-11T17:20:05.685Z
    Electron: 30.4.0
    ElectronBuildId: 10073054
    Chromium: 124.0.6367.243
    Node.js: 20.15.1
    V8: 12.4.254.20-electron.0
    OS: Darwin arm64 23.5.0
  • OS Version: OSX 14.5

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

Copy link

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 PupilTong changed the title Error when parsing container queries with style queries Error when parsing @container with style queries Oct 11, 2024
@PupilTong
Copy link
Author

PupilTong commented Oct 11, 2024

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
Copy link
Contributor

aeschli commented Oct 24, 2024

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

@aeschli aeschli transferred this issue from microsoft/vscode Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants