Intent to Prototype: Relative Alpha Colors (CSS Color 5 alpha() function)

48 views
Skip to first unread message

Chromestatus

unread,
12:32 AM (11 hours ago) 12:32 AM
to blin...@chromium.org, cg...@chromium.org
Contact emails
cg...@chromium.org

Specification
https://drafts.csswg.org/css-color-5/#relative-alpha

Summary
Relative alpha colors refer to an origin color, and only change the alpha channel. The meaning of alpha channels is defined in CSS Color 4 § 4.2 Representing Transparency in Colors: the <alpha-value> syntax.

Blink component
Blink>CSS

Web Feature ID
Missing feature

Motivation
Relative alpha colors provide a direct CSS way to derive a translucent version of an existing color without rewriting its color channels. Authors currently need to duplicate component values or create separate precomputed tokens when they want “the same color, different opacity.” The CSS Color 5 alpha() function preserves the original color components and only changes alpha, which reduces authoring overhead and makes color tokens easier to reuse and maintain.

Initial public proposal
No information provided

Goals for experimentation
None

Requires code in //chrome?
False

Estimated milestones

No milestones specified



Link to entry on the Chrome Platform Status
https://chromestatus.com/feature/5070160203481088?gate=5172416059932672

This intent message was generated by Chrome Platform Status.
Reply all
Reply to author
Forward
0 new messages