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

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>20591</bug_id>
          
          <creation_ts>2013-01-08 00:17:09 +0000</creation_ts>
          <short_desc>Better description of &apos;color-interpolation-filters&apos;</short_desc>
          <delta_ts>2013-12-06 14:02:01 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>CSS</product>
          <component>Filter Effects</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://lists.w3.org/Archives/Public/www-svg/2013Jan/0020.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">dschulze</reporter>
          <assigned_to name="Dean Jackson">dino</assigned_to>
          <cc>cmarrin</cc>
    
    <cc>eoconnor</cc>
    
    <cc>smfr</cc>
    
    <cc>tavmjong</cc>
          
          <qa_contact>public-css-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>81020</commentid>
    <comment_count>0</comment_count>
    <who name="Dirk Schulze">dschulze</who>
    <bug_when>2013-01-08 00:17:09 +0000</bug_when>
    <thetext>The &apos;color-interpolations-filter&apos; needs a better description how and in which order (on pre or unpremultiplied colors) it applies to the input and output of a filter primitive.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81109</commentid>
    <comment_count>1</comment_count>
    <who name="">tavmjong</who>
    <bug_when>2013-01-09 10:00:09 +0000</bug_when>
    <thetext>In implementing support for &apos;color-interpolation-filters&apos; in Inkscape, I assumed converting between color spaces is done on unpremultiplied colors. I checked the color space of the input and then converted it if the input differed from the value of &apos;color-interpolation-filters&apos; on the current primitive. The output was tagged with the value of &apos;color-interpolation-filters&apos;, leaving it up to the next primitive in a chain to convert if necessary (for efficiency). I converted the final output to sRGB (when necessary) at the point of compositing it with the rest of the SVG (Inkscape doesn&apos;t support a value of linearRGB for &apos;color-interpolation&apos;). The end result appears to agree with what browsers are doing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95752</commentid>
    <comment_count>2</comment_count>
    <who name="Dirk Schulze">dschulze</who>
    <bug_when>2013-11-04 06:17:03 +0000</bug_when>
    <thetext>(In reply to tavmjong from comment #1)
&gt; In implementing support for &apos;color-interpolation-filters&apos; in Inkscape, I
&gt; assumed converting between color spaces is done on unpremultiplied colors. I
&gt; checked the color space of the input and then converted it if the input
&gt; differed from the value of &apos;color-interpolation-filters&apos; on the current
&gt; primitive. The output was tagged with the value of
&gt; &apos;color-interpolation-filters&apos;, leaving it up to the next primitive in a
&gt; chain to convert if necessary (for efficiency). I converted the final output
&gt; to sRGB (when necessary) at the point of compositing it with the rest of the
&gt; SVG (Inkscape doesn&apos;t support a value of linearRGB for
&gt; &apos;color-interpolation&apos;). The end result appears to agree with what browsers
&gt; are doing.

I think that is what we do in WebKit as well. Do you think there is a clarification needed in the Filter Effects specification? Sounds more like an implementation detail.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97242</commentid>
    <comment_count>3</comment_count>
    <who name="Dirk Schulze">dschulze</who>
    <bug_when>2013-12-06 14:02:01 +0000</bug_when>
    <thetext>fixed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>