enhanced:img tag not recognised as img

#2321

Development PR

Issue

Open
E
eltigerchino
Mar 23, 2024, 3:03 PM

Describe the bug

Following the @sveltejs/enhanced-img docs, we can style images by targeting them as img. https://kit.svelte.dev/docs/images#sveltejs-enhanced-img-intrinsic-dimensions

However, this shows an unused css warning when using the Svelte VSCode extension

CleanShot 2024-03-23 at 10  56 07@2x

Reproduction

https://github.com/eltigerchino/svelte-enhanced-image clone the repo and open the root page in vs code with the svelte extension

Expected behaviour

There should be no warning.

System Info

  • OS: [MacOS]
  • IDE: [VSCode]

Which package is the issue about?

Svelte for VS Code extension

Additional Information, eg. Screenshots

No response

👍 2

Info

Assignees None
Labels bug
Milestone None