Skip to content
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

:has with sibling selector shows as unused when styling svg elements #14995

Open
wikoj1021 opened this issue Jan 13, 2025 · 1 comment
Open
Labels
css Stuff related to Svelte's built-in CSS handling

Comments

@wikoj1021
Copy link

Describe the bug

When trying to style elements based on siblings in :has selector is falsy reported as unused. When i wrap it in global it works.
When trying to style html elements in the same way it works without issues.

Reproduction

Logs

No response

System Info

System:
    OS: Linux 6.8 Ubuntu 24.04.1 LTS 24.04.1 LTS (Noble Numbat)
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
    Memory: 18.77 GB / 31.11 GB
    Container: Yes
    Shell: 5.2.21 - /bin/bash
  Binaries:
    Node: 18.20.3 - ~/.nvm/versions/node/v18.20.3/bin/node
    Yarn: 1.22.22 - ~/.nvm/versions/node/v18.20.3/bin/yarn
    npm: 10.7.0 - ~/.nvm/versions/node/v18.20.3/bin/npm
    pnpm: 9.4.0 - ~/.nvm/versions/node/v18.20.3/bin/pnpm
    bun: 1.1.34 - ~/.bun/bin/bun
  Browsers:
    Chrome: 131.0.6778.264
  npmPackages:
    svelte: 5.17.3 => 5.17.3

Severity

annoyance

@dummdidumm dummdidumm added the css Stuff related to Svelte's built-in CSS handling label Jan 15, 2025
@dummdidumm
Copy link
Member

Feels related to #15027, in that the :has logic seems to work only at the top level

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
css Stuff related to Svelte's built-in CSS handling
Projects
None yet
Development

No branches or pull requests

2 participants