Skip to content

Spread properties cause CSS to be DCE'd incorrectly #1300

@Rich-Harris

Description

@Rich-Harris

REPL

<div {{...props}} >
	Big red Comic Sans
</div>

<style>
	.foo {
		color: red;
		font-size: 2em;
		font-family: 'Comic Sans MS';
	}
</style>

.foo should be preserved; it isn't.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions