Skip to content

Intellisense broken in <tag><style></style></tag> scenario #13932

@ted-dgk

Description

@ted-dgk

Describe the bug

Not Svelte bug per say. (Tell me if I should move it) I use multiple/nested <style> in the same component for changing a bunch of css under user control. I wrote all the css before I moved to this technique so just noticed now. Intellisense not working in the scenario, you can see in the repro.

Workaround - comment out the enclosing tags.

Don't need this technique if FF would implement style queries.

As an aside - nested '<style>', per the doc, inserts the css to the document verbatim. I used the PP system to minify it. What a pleasure to write.

Reproduction

image

Logs

No response

System Info

System:
    OS: Windows 11 10.0.22631
    CPU: (12) x64 Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz
    Memory: 19.66 GB / 31.94 GB
  Binaries:
    Node: 20.16.0 - D:\nodejs\node.EXE
    npm: 10.8.2 - D:\nodejs\npm.CMD
  Browsers:
    Chrome: 130.0.6723.70
    Edge: Chromium (127.0.2651.74)
    Internet Explorer: 11.0.22621.3527
  npmPackages:
    svelte: ^5.0.5 => 5.0.5

Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions