-
-
Notifications
You must be signed in to change notification settings - Fork 593
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
at-rule or selector expectedcss(css-ruleorselectorexpected) validation error display for styles beginning ">>>" #1924
Comments
There's no support for non-standard CSS features. |
But this is the documented way to do deep selectors for scoped style: Should I be doing |
From what I see you need to have a selector before and after |
https://vue-loader.vuejs.org/guide/scoped-css.html#deep-selectors is the only place I've seen it officially documented, which doesn't define whether you must have a selector before and after. However, I know that not having a selector before does work, since my code behaves as expected. |
You can try your luck by opening an issue here: https://github.com/microsoft/vscode-css-languageservice, but I doubt they'd make the change to accommodate non-standard CSS. Vetur uses it and it parses standard CSS/SCSS/Less. |
You can use |
Same issue with As |
FYI |
I am getting this error with this:
Seems related with interpolating the important from tailwind. If I remove both importants the error doesn't happen. |
@Keyframes slideFromLeft7 { |
Info
Problem
at-rule or selector expectedcss(css-ruleorselectorexpected) validation error display for styles beginning ">>>"
Reproducible Case
Create a .vue file with the following style block:
Open the file in VS Code - you will see the error "at-rule or selector expectedcss(css-ruleorselectorexpected)"
Disable the Veture > Validation: Style setting and reload VS Code - the error will no longer be present.
The text was updated successfully, but these errors were encountered: