Skip to content

Cannot properly use global selector with :is and :where #1208

Open
@deanveloper

Description

@deanveloper

Describe the bug
Svelte language server shows error for :global(:is(.a, .b)), even though it compiles properly.

To Reproduce
(environment: VSCode with Svelte for VSCode extension)

  1. Put :global(:is(.a, .b)) in a component's style.
<script></script>

<style>
:global(:is(.a, .b)) {
   cursor: ew-resize;
}
</style>

Expected behavior
There should not be an error. In fact, building this code is successful.

Screenshots
image

System (please complete the following information):

  • OS: WSL2
  • IDE: VSCode
  • Plugin/Package: Svelte for VSCode

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingupstream

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions