Skip to content

enhanced:img tag not recognised as img #2321

Open
sveltejs/kit
#13617
@eltigerchino

Description

@eltigerchino

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions