-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Closed
Labels
bugcssStuff related to Svelte's built-in CSS handlingStuff related to Svelte's built-in CSS handling
Description
Describe the bug
CSS specificity rules seems to be different for imported components vs local ones. For example the generated styles for imported component svelte-select
has the same class selector repeated 3 times...
.svelte-select.svelte-15ynnp5.svelte-15ynnp5.svelte-15ynnp5
which wins the CSS specificity race vs the generated :global(...)
css section.svelte-6ogvl1 .svelte-select
Reproduction
https://svelte.dev/repl/753f97bc774c4488b4aa2c70fde73ee3?version=3.52.0
Logs
N/A
System Info
System:
OS: macOS 12.6
CPU: (8) arm64 Apple M1
Memory: 157.03 MB / 8.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 18.10.0 - ~/.nvm/versions/node/v18.10.0/bin/node
Yarn: 1.22.10 - /usr/local/bin/yarn
npm: 8.19.2 - ~/.nvm/versions/node/v18.10.0/bin/npm
Browsers:
Chrome: 107.0.5304.87
Firefox: 104.0.2
Firefox Nightly: 106.0a1
Safari: 16.0
Safari Technology Preview: 16.0
Severity
blocking an upgrade
subpx
Metadata
Metadata
Assignees
Labels
bugcssStuff related to Svelte's built-in CSS handlingStuff related to Svelte's built-in CSS handling