<?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>38102</bug_id>
          
          <creation_ts>2010-04-25 23:15:47 -0700</creation_ts>
          <short_desc>Wrong handling of currentColor on inherit</short_desc>
          <delta_ts>2011-03-01 00:35:21 -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>SVG</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>DUPLICATE</resolution>
          <dup_id>54800</dup_id>
          
          <bug_file_loc>http://dev.w3.org/SVG/profiles/1.1F2/test/harness/htmlObject/color-prop-05-t.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Dirk Schulze">krit</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>zherczeg</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>216902</commentid>
    <comment_count>0</comment_count>
    <who name="Dirk Schulze">krit</who>
    <bug_when>2010-04-25 23:15:47 -0700</bug_when>
    <thetext>The SVG in the link has following example:

&lt;g fill=&quot;currentColor&quot; color=&quot;red&quot;&gt;
    &lt;rect x=&quot;120&quot; y=&quot;60&quot; width=&quot;150&quot; height=&quot;150&quot; color=&quot;blue&quot;/&gt;
&lt;/g&gt;

Our current implementation inherits the &apos;fill&apos; property of the &lt;g&gt; element: &apos;currentColor&apos;. Our PaintServer see the value &apos;currentColor&apos; for &apos;fill&apos; on drawing the rect. It takes the value in &apos;color&apos; of the rect, instead of the &lt;g&gt; element. This is not the expected behavior.
The relevant code is here: http://trac.webkit.org/browser/trunk/WebCore/rendering/RenderSVGResource.cpp#L97
The same issue for stroke.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>248320</commentid>
    <comment_count>1</comment_count>
    <who name="Dirk Schulze">krit</who>
    <bug_when>2010-07-08 10:39:30 -0700</bug_when>
    <thetext>*** Bug 41848 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>359715</commentid>
    <comment_count>2</comment_count>
    <who name="Nikolas Zimmermann">zimmermann</who>
    <bug_when>2011-03-01 00:35:21 -0800</bug_when>
    <thetext>

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

    </bug>

</bugzilla>