[Webkit-unassigned] [Bug 56461] New: Add #RRGGBBAA and #RGBA as options for color hex values in CSS
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Mar 16 06:27:58 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=56461
Summary: Add #RRGGBBAA and #RGBA as options for color hex
values in CSS
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
OS/Version: All
Status: UNCONFIRMED
Severity: Enhancement
Priority: P2
Component: CSS
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: paul.neave at gmail.com
Currently the only way to specify a color with an alpha value is to use the rgba() syntax, such as:
.my-color {
color: rgba(255, 255, 255, 0.5); /* half white */
}
This can become very unwieldy to write. A more succinct syntax could extend the current format of #rgb or #rrggbb to include #rgba or #rrggbbaa like so:
.my-color {
color: #ffffff80; /* half white */
}
The browser could easily detect the difference between a 3 or 4 character hex value, or a 6 or 8 character hex value, and implement the alpha channel as appropriate.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list