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

svelte-check: Warn: Unknown property: 'r' (scss) #2388

Open
threema-gian opened this issue Jun 3, 2024 · 1 comment
Open

svelte-check: Warn: Unknown property: 'r' (scss) #2388

threema-gian opened this issue Jun 3, 2024 · 1 comment
Labels

Comments

@threema-gian
Copy link

Describe the bug

When I use the r property (SVG circle radius) in CSS, svelte-check displays the following warning: Warn: Unknown property: 'r' (scss).

For reference:

Possibly related issues:

Reproduction

Reproducer here (built with the latest Vite + Svelte starter at the time of writing): https://github.com/threema-gian/svelte-check-unknown-property-reproducer.

Expected behaviour

Using the following CSS block should not produce any svelte-check warnings:

svg circle {
  r: 5px;
}

System Info

  • OS: Fedora 40
  • IDE: VSCode
  • Package:
    • svelte: 4.2.12
    • svelte-check: 3.6.6
    • typescript: 5.3.3
    • ...others, probably not relevant

Relevant npm script:

  • "lint:svelte": "svelte-check --workspace src/app/ --no-tsconfig --compiler-warnings \"a11y-click-events-have-key-events:ignore\""

Which package is the issue about?

svelte-check

Additional Information, eg. Screenshots

No response

@threema-gian threema-gian added the bug Something isn't working label Jun 3, 2024
@jasonlyu123 jasonlyu123 added upstream and removed bug Something isn't working labels Jun 4, 2024
@jasonlyu123
Copy link
Member

This would need support from upstream vscode-css-languageservice which pulls data from MDN. And MDN also doesn't have a dedicated page for these geometry properties.

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

No branches or pull requests

2 participants