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 CSS custom property analyzeInit hook is wrongly considering any named imported symbol that starts with -- as a custom property and register a symbol for it. This is wrong as a CSS class might also start with --.
This should be fixed by not assuming the type from the import at the analyze flow, and only creating a custom property symbol when encountering a @property --prop, --prop or var(--prop). And adding an import reference if one with the same name exist, similarly to how classes and other symbols work.
The CSS custom property
analyzeInit
hook is wrongly considering any named imported symbol that starts with--
as a custom property and register a symbol for it. This is wrong as a CSS class might also start with--
.This should be fixed by not assuming the type from the import at the analyze flow, and only creating a custom property symbol when encountering a
@property --prop
,--prop
orvar(--prop)
. And adding an import reference if one with the same name exist, similarly to how classes and other symbols work.see playground for reproduction
The text was updated successfully, but these errors were encountered: