Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / CSS

::picker-icon — picker opener icon

The ::picker-icon pseudo-element styles the icon indicating that a popup picker is available. It does not represent the options panel itself.

Version: CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required

Syntax

select::picker-icon { color: teal; }

::picker-icon represents the icon indicating an available picker. It is generated only for a control that opens a picker and has basic appearance. It inherits from its originating element.

Its box comes after ::after; content controls its contents. It is not the panel: ::picker(select) targets that panel, whose rendering requires basic appearance on both itself and select.

The example uses appearance: base from the consulted specification draft. The draft may change; target-browser support and rendering require local verification.

Examples

<!doctype html>
<html lang="en">
<meta charset="utf-8">
<title>Picker icon</title>
<style>
  select {
    appearance: base;
  }
  select::picker(select) {
    appearance: base;
  }
  select::picker-icon {
    content: "▼";
    color: teal;
    margin-inline-start: 0.75em;
  }
</style>
<label for="size">Size</label>
<select id="size">
  <option selected>Small</option>
  <option>Large</option>
</select>
</html>

Result

With support for the draft's appearance: base and ::picker-icon: a select labeled Size, initially showing Small, with a teal ▼ icon. Otherwise, native rendering may remain.

The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.

Sources