Skip to content

A <select> can now include rich HTML contentΒ #15617

@mattcroat

Description

@mattcroat

Describe the bug

Before you could customize a <select>, if you put things like an image or SVG into the <option> element, the browser would ignore them, but Svelte throws an error:

Image

With the release of Chrome 135, the <select> element can now be customized using CSS and supports rich HTML content. Browsers that implement appearance: base-select will eventually support this feature.

Reproduction

This custom select example is valid in Chrome 135 and later versions.

Logs

System Info

n/a

Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions