Skip to content
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

CSS custom properties handled as errors #153

Closed
nosovk opened this issue Dec 24, 2021 · 2 comments
Closed

CSS custom properties handled as errors #153

nosovk opened this issue Dec 24, 2021 · 2 comments

Comments

@nosovk
Copy link

nosovk commented Dec 24, 2021

CSS custom properties introduced in sveltejs/rfcs#13 currently broke eslint cheking.

<input --width="{numLength * 0.875 + 3}rem">

Will fire: '--width' is not a valid attribute name ValidationError'

@dummdidumm
Copy link
Member

Custom properties only work on components, not elements, so this is kind of expected.

@Conduitry
Copy link
Member

Yeah, this isn't a valid Svelte component. That's an error from the compiler that you can also see if you paste that into the REPL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants