svelte
svelte copied to clipboard
Style directive doesn't match `[style]` selector
Describe the bug
The style directive doesn't match [style] selector, so the element may not be scoped.
Reproduction
Logs
System Info
Svelte 5.33.18
Severity
annoyance
The [class] selector doesn't match the class: directive, either.
These both feel like real edge cases to me, though.
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.