Accept 8 (#RRGGBBAA) and 4 (#RGBA) value hex colors

Update the CSS color parser to support 8/4-digit hex color. Legacy HTML attribute color parsing, per the "rules for parsing a legacy colour value" of the HTML micro syntax (, will not be changed (see, nor will the CSS hashless color quirk (




Editor's draft

Status in Chromium


Enabled by default (tracking bug) in:

  • Chrome for desktop release 62
  • Chrome for Android release 62

Consensus & Standardization

After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.

  • Shipped
  • No public signals
  • Shipped
  • Positive


Last updated on 2017-07-17