You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 like postcss-modules which transforms it into a valid, locally scoped identifier.
The text was updated successfully, but these errors were encountered:
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 css.customData, e.g.:
Pseudoclasses are used only when scoping selectors. This is CSS modules syntax that is already syntactically valid:
:local {
.foo {
color: blue;
}
}
But @keyframes :local(foo) is a special incompatible extension. According to the standard, it should be only a simple string identifier. And the VSCode CSS parser really insists that it's an identifier.
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: