Elementary Standards
HTMLCSSWeb StandardsSEOBlogStart reading
Home / Blog / HTML Spec Adds selectedcontent Support to Select Multiple
Standards

HTML Spec Adds selectedcontent Support to Select Multiple

WHATWG merged the pull request on December 2, extending the customizable-select rework so a styled <select multiple> can finally show every choice it's holding, not just the first one.

The <selectedcontent> element was built to solve one problem: let a closed, styled <select> show its chosen option as arbitrary HTML instead of a plain string. It worked, but only for single choice. Pick more than one option in a <select multiple> and the element had nothing defined to do. On December 2, 2026, the WHATWG merged pull request #12430, "Support <selectedcontent> in <select multiple>", closing that gap directly in the HTML Living Standard. It's a small, unglamorous change with a wide blast radius: almost every production form eventually needs a multi-select, and the custom comboboxes teams build to style one are exactly the kind of maintenance debt that blurs the line between web and software development work: a markup-and-CSS fix today retires a chunk of hand-built JavaScript a software team would otherwise own.

list of options

What actually shipped

The merged spec text defines how a <select multiple> populates its <selectedcontent> child: every option in the select's list of options gets cloned into the <selectedcontent>, and each clone carries the same selectedness as the option it was copied from. A new user-agent style rule, select selectedcontent > option:not(:checked) { display: none; }, hides the clones that aren't currently selected, so only the chosen ones render in the closed control. Only selectedness is kept in sync after that; changing an option's state updates its existing clone, it doesn't trigger a full re-clone. The PR also tightens edge cases around which elements count as "options" of a given select, so a clone sitting inside a <selectedcontent> no longer accidentally becomes an option of its own select, or of the one it was cloned from.

That's a meaningful change on its own, but it also resolves a question the selectedcontent element's spec text had left genuinely open since the single-select version shipped: multi-select had no defined behavior for it at all. Developers who tried wiring up <selectedcontent> inside a multiple select before December 2 were working against undefined behavior, not a bug — the platform simply hadn't decided what should happen yet.

Why multi-select customization lagged behind single-select

Customizable select landed first for the common case: one value, one clone, one piece of HTML to drop into the closed button. Multi-select is harder because the closed control has to represent a set, not a value, and the obvious naive approach — clone everything, show nothing, let the UA style sheet sort it out — only works if "which clones are visible" is defined precisely enough that browsers agree on it. Before this merge, that definition didn't exist, so every implementation that wanted to experiment, including MDN's own reference page for the element, could only describe the single-select behavior as settled and flag multi-select as unresolved. Now there's one canonical answer in the Living Standard that every engine can implement against, instead of each browser guessing independently and shipping incompatible previews.

What this means for developers

When does this ship / timeline

A WHATWG pull request merging into html.spec.whatwg.org changes the specification immediately — that part already happened, and the live Living Standard reflects the new behavior as of this merge. Browser implementation is a separate, slower step: engines pick up spec changes on their own release cadences, usually behind a flag first, then in a stable release once interoperability is confirmed across Chromium, WebKit and Gecko. Single-select customizable select took roughly a year to go from spec text to broad stable support; expect a similar runway here before <select multiple> with <selectedcontent> is something you can ship without a feature check.

Back to the blog
More notes

Keep reading