You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Uncomment the article * selector to see the correctly raised warning.
Expected behavior
A warning should be raised.
Stacktraces
If you have a stack trace to include, we recommend putting inside a <details> block for the sake of the thread's readability:
Stack trace
Stack trace goes here...
Information about your Svelte project:
All browsers
Latest macOS
3.24.1
Rollup
Severity
It took some time to realize this when trying to target elements that are inside the @html string. I then noticed that it is impossible in the first place without using :global but having a warning would be much much better.
Additional context
I can try fixing it myself.
The text was updated successfully, but these errors were encountered:
Describe the bug
Svelte does not warn when there is an unused selector of the form
element > *
inside<style>
tags. E.g.:Logs
No logs.
To Reproduce
REPL:
https://svelte.dev/repl/6480b8f41e784418bdae55a163257e21?version=3.24.1
article > *
does not raise warnings.article *
selector to see the correctly raised warning.Expected behavior
A warning should be raised.
Stacktraces
If you have a stack trace to include, we recommend putting inside a
<details>
block for the sake of the thread's readability:Stack trace
Stack trace goes here...
Information about your Svelte project:
All browsers
Latest macOS
3.24.1
Rollup
Severity
It took some time to realize this when trying to target elements that are inside the
@html
string. I then noticed that it is impossible in the first place without using:global
but having a warning would be much much better.Additional context
I can try fixing it myself.
The text was updated successfully, but these errors were encountered: