concept

Customizable select — CSS reference

A native select with opt-in base styling exposes its picker, icon and checkmark for CSS styling while retaining HTML option selection. Use a real label and test keyboard interaction; support for styling is distinct from accessibility conformance.

Formal Syntax & Structure

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

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>Customizable select</title><style>body{margin:16px;font:16px/1.5 system-ui;background:white;color:#172033} .demo{background:#dbeafe;box-sizing:border-box} button,select{font:inherit}select,select::picker(select){appearance:base-select}</style><body><label for="choice">Choose a course</label> <select id="choice"><option value="css">CSS</option><option value="html">HTML</option></select></body></html>
CSS Reference