Skip to content

details bind:open should count as [open] for styling #3281

Closed
@Conduitry

Description

@Conduitry
<script>
	let open = false;
</script>

<details bind:open>Hello</details>

<style>
	details[open] {
		color: red;
	}
</style>

details[open] is getting removed because the compiler doesn't think that <details bind:open> indicates an open attribute that might be present.

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