Skip to content

[Bug]: TSRX <style> element inside an expression emits unexpected css #1291

Description

@mizulu

Issue Category

Compilation Bug

Bug Description

Image

without the {} around the <style> tag

Image

side note
if we nest the <style> tag in other elements under the top level fragment
the style that is emitted is the same as if it was declared top level ( different hash but all styles are detected as used)

Reproduction Steps

pinned playground

unpinned playground

Environment

Additional Context

No response

Checklist

  • I've searched for existing issues
  • I'm willing to help implement a fix

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions