svelte icon indicating copy to clipboard operation
svelte copied to clipboard

Style directive doesn't match `[style]` selector

Open 7nik opened this issue 5 months ago • 2 comments

Describe the bug

The style directive doesn't match [style] selector, so the element may not be scoped.

Reproduction

REPL

Logs


System Info

Svelte 5.33.18

Severity

annoyance

7nik avatar Jun 14 '25 19:06 7nik

The [class] selector doesn't match the class: directive, either.

These both feel like real edge cases to me, though.

Conduitry avatar Jun 15 '25 03:06 Conduitry

I agree, if you're trying to target an element you probably shouldn't rely on attributes (especially those that are only directives) Additionally, if you were to try to do this, you'd probably find out pretty quickly that it doesn't work.

Ocean-OS avatar Jun 15 '25 04:06 Ocean-OS