Skip to content

Transition leaves empty style element #7164

Closed
@Restorn

Description

@Restorn

Describe the bug

Introduced in #7114

The current version clears the stylesheet and removes reference to it but leaves the empty style element behind.
Every transition creates a new style duplicate.
Previous version kept stylesheet reference as a part of the document.

Reproduction

https://svelte.dev/repl/a6eddb766f9e474c92e5a23ba0bba362?version=3.46.2

Logs

No response

System Info

REPL

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