Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / CSS

::-webkit-calendar-picker-indicator — date or time picker indicator

A nonstandard pseudo-element for styling the indicator that opens a native date or time picker. It targets part of the control, not the popup panel, and requires testing in the target browser.

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

Syntax

input[type="date"]::-webkit-calendar-picker-indicator { background-color: #dbeafe; }

::-webkit-calendar-picker-indicator is a nonstandard, vendor-prefixed pseudo-element. Blink's stylesheet uses it with date, datetime-local, month, week, and time inputs. It selects the control's indicator, not the contents of the open panel or the editable date segments. The selector input[type="date"]::-webkit-calendar-picker-indicator restricts the rule to date inputs.

Treat it as an optional visual enhancement, not a portable mechanism for building a picker. Preserve the label and visible focus; do not hide the only visible way to open the panel. The example changes the indicator's background, corner rounding, and padding. The source on the main branch alone does not establish behavior in Chromium 152.

Examples

<!doctype html>
<html lang="en">
<meta charset="utf-8">
<title>Picker indicator</title>
<style>
  #date::-webkit-calendar-picker-indicator {
    background-color: #dbeafe;
    border-radius: 4px;
    padding: 6px;
  }
</style>
<label for="date">Date</label>
<input id="date" type="date" value="2026-06-15">
</html>

Result

Expected in a supporting browser: a date input with a pale-blue background and rounded corners around its native picker icon. Date formatting and popup appearance depend on the environment. No console output.

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