<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>56461</bug_id>
          <alias>rrggbbaa</alias>
          <creation_ts>2011-03-16 06:27:58 -0700</creation_ts>
          <short_desc>Add #RRGGBBAA and #RGBA as options for color hex values in CSS</short_desc>
          <delta_ts>2011-03-23 11:31:55 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>CSS</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>39140</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Paul Neave">paul.neave</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abecsi</cc>
    
    <cc>mikelawther</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>368318</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Neave">paul.neave</who>
    <bug_when>2011-03-16 06:27:58 -0700</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>370266</commentid>
    <comment_count>1</comment_count>
    <who name="Mike Lawther">mikelawther</who>
    <bug_when>2011-03-20 20:35:56 -0700</bug_when>
    <thetext>This is not in the spec.

Perhaps ask www-style@ for their opinion.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>372285</commentid>
    <comment_count>2</comment_count>
    <who name="Andras Becsi">abecsi</who>
    <bug_when>2011-03-23 11:31:55 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 39140 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>