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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy