-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Style scoping breaks spread with "class" attribute #2721
Comments
Hi @trbrc! Thank you so much for reporting this! When you add the var p1_levels = [ctx.spread]; To this: var p1_levels = [ctx.spread, { class: "svelte-1yjig6f" }]; Right after that, the var p1_data = {};
for (var i = 0; i < p1_levels.length; i += 1) {
p1_data = assign(p1_data, p1_levels[i]);
} And since both |
I've pushed a change here that fixes this in DOM mode by adding a |
There seems to be a bug related to the combination of spreads with "class" attributes, and scoped selectors in
<style>
tags.Example:
https://svelte.dev/repl/a27af26f3c184b799a02eab5732e3c59?version=3.2.1
It seems that various non-
:global
selectors produce the behavior, but not all. Try changing the selector from.this-class-breaks-the-spread
top
and it breaks too.Possibly related to #2707
The text was updated successfully, but these errors were encountered: