Example

A simple accent-color property example:

Laboratory

description & Usage

The accent-color property sets a default and mandatory color for tags:

  • <input type="checkbox">.
  • <input type="radio">.
  • <input type="range">.
  • <progress>.

Specifies.

Informations

# Description
Default Value auto
Inherited yes
Animatable no
Version CSS4
JavaScript syntax object.style.accentColor="red"

Browser compatibility and Support

The numbers inserted in the browser fields indicate the version that supports the accent-color property.

# Chrome Edge Firefox Safari Opera
accent-color

Syntax

Values

Values Description
auto en
color en
initial en
inherit en