We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Playground
HTML: <div id="container" style="height: 100%"> <h1>I am an H1</h1> <span>I am a span</span> </div> CSS: h1:has(~ span) { color: red; }
Use the :has() pseudo-class with a selector function to trigger the syntax error.
:has()
Functionally, the code behaves as expected. However, the editor displays the following syntax error:
) expectedcss(css-rparentexpected) <h1 :has> ⋮ <span> [Selector Specificity](https://microsoft.github.io/monaco-editor/playground.html?source=v0.47.0): (0, 0, 2)
There should be no syntax error, similar to using the exact same code in VS Code.
VS Code has resolved this in issue #147353.
The text was updated successfully, but these errors were encountered:
duplicate: #4071
Sorry, something went wrong.
No branches or pull requests
Reproducible in vscode.dev or in VS Code Desktop?
Reproducible in the monaco editor playground?
Monaco Editor Playground Link
Playground
Monaco Editor Playground Code
Reproduction Steps
Use the
:has()
pseudo-class with a selector function to trigger the syntax error.Actual (Problematic) Behavior
Functionally, the code behaves as expected. However, the editor displays the following syntax error:
Expected Behavior
There should be no syntax error, similar to using the exact same code in VS Code.
Additional Context
VS Code has resolved this in issue #147353.
The text was updated successfully, but these errors were encountered: