← Back to release summary

CSS Color 4 RGB/RGBA syntax

Category
CSS
Type
New or changed feature
Status
Enabled by default (Chrome 65)
Intent stage
None

Summary

Update parsing of RGB() and RGBA() to the syntax described in CSS Color 4. The functions were synonymized, along with allowing whitespace to separate the channels instead of commas, introducing a backslash as a new way to separate the alpha parameter, and allowing percent values for the alpha parameter.

Standards & signals

Docs: https://developer.mozilla.org/en-US/docs/Web/CSS/color_value

View on chromestatus.com