-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Closed
Description
Describe the bug
Some CSS selectors throw an error when mixed with :global()
.
This seems to only happen svelte 5, not the earlier versions.
From my experimentation I am relatively sure it happens when adding selectors with (
and )
, e.g :where(), :has(), :is(), etc
Reproduction
:global(:where(selector))
:global(:not([attribute]))
:global(:is(.class)
https://svelte-5-preview.vercel.app/#H4sIAAAAAAAAEyWOwQrCMBBEfyXsqYLoPVZB_IR6Mx7aZmsXtknJbgul9N9t9DiPecOs0BGjgH2tEOoBwcJ9HOEIuow5yIysuGeJU2ozKT3NpuVa5OpAUdTBzQWnz57EPKrKSB8n9qZBQ2GumbwL5XmXciuUogvjT7Afjk3NhSUpTnnoYNbMnbaRY7Imob9ksOWBv7cfGaKnjtCD1TTh9t6-jKj2HMMAAAA=
^ This demo should be invalid, but does not throw an error
Logs
No response
System Info
System:
OS: macOS 14.2
CPU: (8) arm64 Apple M2
Memory: 59.17 MB / 24.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.16.0 - ~/.nvm/versions/node/v18.16.0/bin/node
Yarn: 1.22.19 - ~/.yarn/bin/yarn
npm: 9.5.1 - ~/.nvm/versions/node/v18.16.0/bin/npm
Browsers:
Chrome: 119.0.6045.123
Chrome Canary: 121.0.6123.0
Edge: 118.0.2088.69
Firefox Nightly: 120.0a1
Safari: 17.2
Safari Technology Preview: 17.4
npmPackages:
svelte: ^5.0.0-next.1 => 5.0.0-next.1
Severity
annoyance
voytxtjasperkelder
Metadata
Metadata
Assignees
Labels
No labels