Skip to content

css_nesting_selector_invalid_placement false positive using tailwind 4 import reference #14563

Open
@minht11

Description

@minht11

Describe the bug

Have style block like this

<style>
	@import '../../app.css' reference;
</style>

using new tailwind 4 syntax, see
Svelte diagnostic emits top level warning Nesting selectors can only be used inside a rule or as the first selector inside a lone ':global(...)'

Reproduction

n/a

Logs

No response

System Info

npmPackages:
    svelte: ^5.6.2 => 5.6.2

Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Labels

    cssStuff related to Svelte's built-in CSS handling

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions