-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
:where breaks :global in 3.38.3 #6434
Comments
The preferred usage for your particular use case should be outside :global(button) ~ :where(a, p) {
color: red;
} On that note, it should also be valid to have selector list inside |
As far as I'm aware, this is not a bug: #6428 |
I would personally expect this to be disallowed in favor of a > :where(:global(b), :global(c)) given the recent change. That being said, this code snippet doesn't currently work (the |
True, but I would also like this to work: |
@babichjacob Some selectors don't lend themselves to that conversion. In my case, 3.38.3 reported this new error for article :global(:where(h2, h3, h4, h5, h6)) which would become article :where(:global(h2), :global(h3), :global(h4), :global(h5), :global(h6)) |
This should be fixed in 3.39.0 - https://svelte.dev/repl/564fb17fee1f491c89986252fb04776f?version=3.39.0 |
Hi!
I've tried to update the libs but still rises the same error Any idea how to solve this? |
@Garito Maybe you meant this? :global(.table :where(th, td)) { |
Don't know since this is not my css The weird think is that it started suddenly after run |
Thank you for reporting this, @TheComputerM! |
Just looked through some DaisyUI issues. DaisyUI's creator (Pouya) says: "This issue must be fixed from Svelte. |
Any progress with this issue? |
I've noticed that passing on svelte's css management solves the problem |
@tanhauhau closed this issue over a year ago after trying to fix it and believing he had succeeded. (Thank you for that!) Perhaps he would be willing to take a quick look at the new information posted here since last June? I have watched some of your excellent Youtube videos on Svelte Store, Li Hau, and plan to watch them all. Thank you for taking time to share that and for pushing the Svelte project forward! (P.S. Apologies for not digging into this code myself. I'm a backend Elixir dev only recently enticed out of my hole into the frontend world by two amazing new frameworks, Svelte and Phoenix LiveView. I'm no Rich Harris!) |
I'm also still facing this issue using DaisyUI and svelte-markdown. Unfortunate as there doesn't seem to be many markdown alternatives. |
Unsubscribe
…On Thu, Aug 25, 2022, 11:49 PM Alex Rodgers ***@***.***> wrote:
I'm also still facing this issue using DaisyUI and svelte-markdown.
Unfortunate as there doesn't seem to be many markdown alternatives.
—
Reply to this email directly, view it on GitHub
<#6434 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ARKKHVSBWGVFMP6U26FNMJ3V262JRANCNFSM47FZW2AA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
I've finally found a clean way to include global styles without forcing them through Svelte's <script lang="ts">
import css from './app.postcss?inline';
</script>
<svelte:element this="style">
{css}
</svelte:element> |
Describe the bug
Using multiple selectors in
:where
(https://web.dev/css-is-and-where/) breaks :global in 3.38.3 and not 3.38.2.Logs
To Reproduce
In 3.38.2: https://svelte.dev/repl/564fb17fee1f491c89986252fb04776f?version=3.38.2
In 3.38.3: https://svelte.dev/repl/564fb17fee1f491c89986252fb04776f?version=3.38.3
Expected behavior
Should have same behavior as 3.38.2
Severity
Kind of high.
The text was updated successfully, but these errors were encountered: