sveltejs / language-tools

The Svelte Language Server, and official extensions which use it
MIT License
1.21k stars 196 forks source link

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

Open threema-gian opened 3 months ago

threema-gian commented 3 months ago

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

Relevant npm script:

Which package is the issue about?

svelte-check

Additional Information, eg. Screenshots

No response

jasonlyu123 commented 3 months ago

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.