Customizable Select: Styling Dropdowns Without JS

Customizable Select: Styling Dropdowns Without JS

The native select's option list now takes CSS in supporting browsers. How appearance: base-select and ::picker(select) work, what the native element keeps and what changes, and when the JS component still wins.

The option list of a native select rendered outside CSS's reach, which is why a styled dropdown, until now, meant rebuilding the control in JavaScript. The customizable select — appearance: base-select plus the ::picker(select) pseudo-element — moves the picker into the page so both halves become styleable, while the element keeps its keyboard model, form participation, and assistive-technology semantics. As of November 2026 it ships in Chrome and Edge 135+ and Safari 27 but not in Firefox, and because the mode is opt-in CSS, unsupported browsers fall back to the classic native select automatically. This covers the mechanics, the fallback architecture, and the cases where the JavaScript component still wins.

Why select stayed unstylable for so long

Checkboxes, radios, ranges, text inputs, even file inputs could be coerced into a design system with enough CSS. The select resisted, and for a structural reason rather than a missing property: the open option list was drawn as a native pop-up that could render outside the browser pane, in a layer the page's stylesheet had no access to. You could style the closed control a little. The list that opened was not yours.

So teams rebuilt it. A button, a listbox rendered in the page, ARIA attributes approximating what the native element announced, and keyboard handling written from scratch. Select-replacement components are a long-standing category of UI dependency for exactly this reason — libraries like react-select and Choices.js exist because a design called for a styled dropdown and the platform said no.

The rebuild is never free. It ships bundle weight for a control the browser already implements. Keyboard behavior and screen-reader output vary per library and per version, while the native element's behavior comes from the engine itself, although even there the exact keys may differ between browsers and platforms. Mobile loses the platform picker — the wheel or full-screen list users already know — in favor of a scrolling div. Form integration becomes a hidden input and a submit-time synchronization step. None of these are bugs in any particular library; they are the cost of reimplementing a control that had one deficiency.

The opt-in model: appearance: base-select

The new behavior does not arrive by default. A select renders exactly as it always did until you opt that element into the styleable mode, and the opt-in has to be applied twice — once to the control, once to its picker:

css
select,
::picker(select) {
  appearance: base-select;
}

That single pair of declarations switches the element into a rendering mode where both halves are ordinary styleable boxes. Selects you have not opted in keep their native rendering, which is what makes the change safe to introduce component by component in a large codebase.

The anatomy that opt-in exposes has two parts. The button is the closed control sitting in your layout. The picker is the pop-up that appears when it opens. They are styled separately, and in the styled mode you can supply the button's contents explicitly:

html
<select>
  <button>
    <selectedcontent></selectedcontent>
  </button>
  <option value="standard">Standard delivery</option>
  <option value="express">Express delivery</option>
</select>

The reason any of this became possible is the rendering change underneath: in the styled mode the picker is drawn in the page's top layer, like a popover. The mode also changes behavior, not only looks: Chrome's developer blog post announcing the feature lists what base-select gives up — the select no longer renders outside the browser pane, no longer triggers built-in mobile operating system components, and no longer takes the width of its longest option. The picker's placement relative to the button is resolved by the engine using the same anchor-positioning machinery that CSS exposes for overlays generally, which has its own dedicated coverage.

Styling the button and the picker

Once opted in, both halves take ordinary CSS.

css
select {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font: inherit;
}

::picker(select) {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.12);
  max-height: 20rem;
  overflow-y: auto;
}

select::picker-icon {
  transition: rotate 150ms ease;
}

select:open::picker-icon {
  rotate: 180deg;
}

The open and closed states are addressable, so the disclosure indicator can animate the way it does in your design system rather than being whatever glyph the platform draws. Open and close transitions on the picker itself use the general CSS mechanism for animating elements in and out of the top layer, which is a topic of its own.

Options, groups, and rich content

Options and option groups are styleable elements now, and the selected-state indicator has its own pseudo-element:

css
option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
}

option:hover,
option:focus {
  background: var(--surface-hover);
}

option::checkmark {
  color: var(--color-accent);
}

optgroup {
  padding-block-start: 0.5rem;
}

The consequence that matters is that an option can contain real content. A currency picker with a flag image and a secondary line of text, a shipping option showing a price and an estimated arrival, an assignee list with avatars — these are requirements that historically forced a JavaScript rebuild, because the native option could hold text and nothing else.

The selectedcontent element closes the loop: it mirrors the chosen option's content into the closed button, so a rich option renders richly once selected rather than collapsing to its text.

What you keep, and what changes

The table below lists what stays with the native element in the styled mode and what changes. A JavaScript component has to reimplement all of it, and how completely it does so depends on the library.

BehaviorNative styled selectJavaScript rebuild
Keyboard model (arrows, typeahead, Home/End, Escape)Provided by the engine (exact keys may vary by browser and platform)Written per library, varies in completeness
Form participation and submissionAutomatic — it is a form controlHidden input plus synchronization
Constraint validation and required handlingBuilt inRe-implemented or skipped
AutofillHinted by the autocomplete attribute, as on any selectDepends on the library
Assistive-technology semanticsFrom the engine's own accessibility treeARIA approximation maintained by hand
Mobile platform behaviorNot kept in Chrome: the styled mode does not trigger built-in mobile operating system components and uses the in-page pickerA scrolling list in the page

Typeahead is the one worth calling out specifically, because rebuilds can leave it out: typing the first letters of an option jumps to it. Users who have that habit notice immediately when a custom component does not.

The accessibility line deserves care rather than triumphalism. Using the native element means the semantics come from the engine's own accessibility tree instead of from ARIA attributes you maintain, which removes an entire category of drift — the role that was right when the component was written and wrong after a refactor, the state attribute that stopped being updated. It does not mean the resulting interface is accessible by default. Option content that carries meaning only in an image, contrast that fails against the new picker background, a control with no associated label: all of those are still yours to get right, and the styled mode gives you fresh ways to get them wrong.

Support gate and the honest fallback

As of November 2026 this is a two-engine feature. Chrome and Edge shipped it in version 135, and Safari followed in version 27, released in September 2026: WebKit announced customizable select, including appearance: base-select, ::picker-icon, ::checkmark, and <selectedcontent>, for the Safari 27 beta (WebKit, News from WWDC26, accessed November 2026). Firefox has not shipped it. Global support sits at about 74% of tracked traffic (caniuse, accessed November 2026), and the web-features data still lists the feature as limited availability (accessed November 2026). Verify both before you plan around them — browser support here is still changing, and this paragraph will age faster than the rest of this article.

The posture that follows is enhancement-only, and the architecture is unusually clean because of how the opt-in works. A browser that does not understand appearance: base-select ignores the declaration and renders the classic native select — fully functional and keyboard-complete, but without your design system's styling, and with any images or SVG inside an option ignored. There is no polyfill to load and no second code path to maintain.

State that as a design principle rather than as an accident: the fallback is the plain native control, and it is a designed state. Show it to whoever owns the design and get it accepted. If the answer is that an unstyled dropdown is unacceptable on the browsers that will render it, then the JavaScript library stays for now — that is a legitimate outcome, and it is better reached deliberately than discovered after shipping. What you should not do is rebuild the fallback in JavaScript, because that reintroduces exactly the dependency and the variance this feature exists to remove.

There is also an honest column of cases where the native element is still the wrong tool regardless of support. Search or filtering inside a long option list. Multi-selection rendered as removable tokens. Options loaded asynchronously as the user types. Virtualized lists of thousands of entries. Those are combobox and listbox requirements rather than select requirements, and a component library remains the right answer for them. The customizable select retires the rebuilds that existed only because the control could not be styled.

Project Inquiry