-
Notifications
You must be signed in to change notification settings - Fork 177
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
Parse CSS modules syntax for @keyframes :local(ident) #393
Comments
Might be obvious given the error ("identifier expected" rather than "unknown pseudo class" or something), but I'll add that this also isn't resolved by adding the pseudos to {
"version": 1.1,
"pseudoClasses": [
{
"name": ":local",
"description": "css modules local"
}
]
} |
Pseudoclasses are used only when scoping selectors. This is CSS modules syntax that is already syntactically valid:
But |
The VSCode CSS parser fails to parse the CSS modules syntax for scoping keyframes identifiers:
The SASS tool (both the Dart and C++) implementations parse the
@keyframes
identifier either as a selector, or just as a generic raw params string (anything between atrule and start of the block), I'm not sure. But they are able to pass the:local(ident)
string to a tool likepostcss-modules
which transforms it into a valid, locally scoped identifier.The text was updated successfully, but these errors were encountered: