<?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>42017</bug_id>
          
          <creation_ts>2010-07-09 18:20:47 -0700</creation_ts>
          <short_desc>CSSComputedStyleDeclaration::getPropertyCSSValue returns rgba(0, 0, 0, 0) instead of transparent</short_desc>
          <delta_ts>2018-01-23 08:54:17 -0800</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>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>HasReduction</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ryosuke Niwa">rniwa</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>cdumez</cc>
    
    <cc>cnardi</cc>
    
    <cc>glenn</cc>
    
    <cc>hyatt</cc>
    
    <cc>mitz</cc>
    
    <cc>oliver</cc>
    
    <cc>simon.fraser</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>249419</commentid>
    <comment_count>0</comment_count>
      <attachid>61133</attachid>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2010-07-09 18:20:47 -0700</bug_when>
    <thetext>Created attachment 61133
demonstrates the bug

When obtaining the background color from the computed style, it returns rgba(0, 0, 0, 0) even when the background color is not specified.  This behavior deviates from other browsers such as Firefox which returns &quot;transparent&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>249429</commentid>
    <comment_count>1</comment_count>
    <who name="">mitz</who>
    <bug_when>2010-07-09 18:30:02 -0700</bug_when>
    <thetext>I believe that there is content that relies on this behavior, but maybe I am thinking about different yet closely-related behavior.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>249430</commentid>
    <comment_count>2</comment_count>
    <who name="">mitz</who>
    <bug_when>2010-07-09 18:30:50 -0700</bug_when>
    <thetext>Specifically, I’m thinking of the content from bug 36700.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>250794</commentid>
    <comment_count>3</comment_count>
    <who name="Ojan Vafai">ojan</who>
    <bug_when>2010-07-13 16:00:36 -0700</bug_when>
    <thetext>FF3.6 and Opera 10.6 return &quot;transparent&quot; in the test case. Not sure that we can fix this though given the compatibility issue. We could try to convince Firefox/Opera to switch to returning rgba in this case? It&apos;s worth filing bugs with them at least to see if they&apos;d be willing to given that there are pages that depend on this behavior.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>250827</commentid>
    <comment_count>4</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2010-07-13 17:00:32 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; Specifically, I’m thinking of the content from bug 36700.

I think those tests can be fixed. Since most of major browsers return &quot;transparent&quot;, it&apos;s sensible for us to conform to the de-facto standard. Otherwise, Web developers have to keep adding a special case for the WebKit.

(In reply to comment #3)
&gt; FF3.6 and Opera 10.6 return &quot;transparent&quot; in the test case. Not sure that we can fix this though given the compatibility issue. We could try to convince Firefox/Opera to switch to returning rgba in this case? It&apos;s worth filing bugs with them at least to see if they&apos;d be willing to given that there are pages that depend on this behavior.

I&apos;m not sure if convincing two other UAs to WebKit&apos;s behavior is a sensible thing to do given the total market share of FF and Opera compared to that of ours.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>250831</commentid>
    <comment_count>5</comment_count>
    <who name="Ojan Vafai">ojan</who>
    <bug_when>2010-07-13 17:07:10 -0700</bug_when>
    <thetext>&gt; (In reply to comment #3)
&gt; &gt; FF3.6 and Opera 10.6 return &quot;transparent&quot; in the test case. Not sure that we can fix this though given the compatibility issue. We could try to convince Firefox/Opera to switch to returning rgba in this case? It&apos;s worth filing bugs with them at least to see if they&apos;d be willing to given that there are pages that depend on this behavior.
&gt; 
&gt; I&apos;m not sure if convincing two other UAs to WebKit&apos;s behavior is a sensible thing to do given the total market share of FF and Opera compared to that of ours.

Except we know that there is a web compatibility problem with the FF/Opera implementation. We don&apos;t know of a compatibility problem with the WebKit implementation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>731377</commentid>
    <comment_count>6</comment_count>
    <who name="Glenn Adams">glenn</who>
    <bug_when>2012-09-30 21:35:28 -0700</bug_when>
    <thetext>I&apos;ve just drafted serialization rules for this at [1]. If it is accepted, then it should justify keeping the current WK behavior, and not returning &apos;transparent&apos;.

[1] http://dvcs.w3.org/hg/csswg/raw-file/tip/cssom/Overview.html#serializing-css-values</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1392048</commentid>
    <comment_count>7</comment_count>
    <who name="Chris Nardi">cnardi</who>
    <bug_when>2018-01-23 07:07:58 -0800</bug_when>
    <thetext>This bug should be closed; the spec now specifies that this is the correct behavior (see https://drafts.csswg.org/css-color-4/#resolving-color-values)</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>61133</attachid>
            <date>2010-07-09 18:20:47 -0700</date>
            <delta_ts>2010-07-09 18:20:47 -0700</delta_ts>
            <desc>demonstrates the bug</desc>
            <filename>computedStyleTest2.html</filename>
            <type>text/html</type>
            <size>261</size>
            <attacher name="Ryosuke Niwa">rniwa</attacher>
            
              <data encoding="base64">PGh0bWw+Cjxib2R5Pgo8cD4KPHNwYW4gaWQ9InRlc3QiIHN0eWxlPSJiYWNrZ3JvdW5kLWNvbG9y
OiBpbmhlcml0OyI+aGVsbG8sIHdvcmxkPC9zcGFuPgo8L3A+CjxzY3JpcHQgdHlwZT0idGV4dC9q
YXZhc2NyaXB0Ij4KCnZhciBlID0gZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoJ3Rlc3QnKTsKZG9j
dW1lbnQud3JpdGUod2luZG93LmdldENvbXB1dGVkU3R5bGUoZSwgbnVsbCkuYmFja2dyb3VuZENv
bG9yKTsKCjwvc2NyaXB0Pgo8L2JvZHk+CjwvaHRtbD4K
</data>

          </attachment>
      

    </bug>

</bugzilla>