WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 39140
56461
rrggbbaa
Add #RRGGBBAA and #RGBA as options for color hex values in CSS
https://bugs.webkit.org/show_bug.cgi?id=56461
Summary
Add #RRGGBBAA and #RGBA as options for color hex values in CSS
Paul Neave
Reported
2011-03-16 06:27:58 PDT
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.
Attachments
Add attachment
proposed patch, testcase, etc.
Mike Lawther
Comment 1
2011-03-20 20:35:56 PDT
This is not in the spec. Perhaps ask www-style@ for their opinion.
Andras Becsi
Comment 2
2011-03-23 11:31:55 PDT
*** This bug has been marked as a duplicate of
bug 39140
***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug