<?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>11015</bug_id>
          
          <creation_ts>2010-10-12 17:15:38 +0000</creation_ts>
          <short_desc>errata:  feDisplacementMap needs to specify how to treat output</short_desc>
          <delta_ts>2010-10-17 09:42:42 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>SVG</product>
          <component>SVG Document Object Model (DOM)</component>
          <version>SVG 1.2 Tiny</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Test Suite</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="j.chetwynd">jay</reporter>
          <assigned_to name="Doug Schepers">schepers</assigned_to>
          <cc>longsonr</cc>
          
          <qa_contact name="SVG Public List">www-svg</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>41153</commentid>
    <comment_count>0</comment_count>
      <attachid>922</attachid>
    <who name="j.chetwynd">jay</who>
    <bug_when>2010-10-12 17:15:38 +0000</bug_when>
    <thetext>Created attachment 922
simple testcase

unless style of filters is specified:
color-interpolation-filters=&quot;SRGB&quot;

there is currently a difference in display between Mozilla and Opera or Safari.
in the attachment Mozilla lightens the filtered space, whereas Opera and Safari darken.

Robert  Longson in the Mozilla bug report says:

It all comes down to whether the output of feDisplacementMap should be
premultiplied or not.

The specification clearly says how to treat the inputs (in1 and in2)
http://www.w3.org/TR/SVG/filters.html#feDisplacementMapElement it does not say
how to treat the output. Should that be affected by color-interpolation-filters
or should it always be SRGB, LINEARRGB or whatever in1 is or even whatever in2
is.

Firefox takes the output as being whatever colour space is defined by
color-interpolation-filters i.e. if in1 starts as LINEARRGB then it finishes as
LINEARRGB. It seems like Opera and Safari assume it is SRGB.

This needs taking up with the w3c as it is unclear what is correct.

https://bugzilla.mozilla.org/show_bug.cgi?id=603584#c16</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41154</commentid>
    <comment_count>1</comment_count>
    <who name="j.chetwynd">jay</who>
    <bug_when>2010-10-12 17:16:24 +0000</bug_when>
    <thetext>mozilla  bug:
https://bugzilla.mozilla.org/show_bug.cgi?id=603584</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41465</commentid>
    <comment_count>2</comment_count>
    <who name="Robert Longson">longsonr</who>
    <bug_when>2010-10-17 08:11:01 +0000</bug_when>
    <thetext>in1 is the source image and in2 supplies the displacements. So it does not make sense that applying in2 should change the colour space of the output. The output colour space should be whatever in1 is.

The specification currently says this...

The color-interpolation-filters  property only applies to the in2 source image and does not apply to the in source image. The in source image must remain in its current color space.

How about something like this for extra clarity?

The color-interpolation-filters  property only applies to the in2 source image and does not apply to the in source image. The in source image must be displaced in its current color space, the output is also in that color space.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41466</commentid>
    <comment_count>3</comment_count>
    <who name="j.chetwynd">jay</who>
    <bug_when>2010-10-17 09:27:04 +0000</bug_when>
    <thetext>#2 might this proposed change have the undesirable effect, if implemented, of changing content already published with another expectation?

might an alternative approach be to include an addendum specifying the need to add a color-interpolation-filter value to ensure consistency across browsers?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41467</commentid>
    <comment_count>4</comment_count>
    <who name="Robert Longson">longsonr</who>
    <bug_when>2010-10-17 09:42:42 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; #2 might this proposed change have the undesirable effect, if implemented, of
&gt; changing content already published with another expectation?
&gt; 
&gt; might an alternative approach be to include an addendum specifying the need to
&gt; add a color-interpolation-filter value to ensure consistency across browsers?

No that&apos;s not appropriate It&apos;s just a workaround for what&apos;s really a bug in Firefox.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>922</attachid>
            <date>2010-10-12 17:15:38 +0000</date>
            <delta_ts>2010-10-12 17:15:38 +0000</delta_ts>
            <desc>simple testcase</desc>
            <filename>ffbug.svg</filename>
            <type>image/svg+xml</type>
            <size>622</size>
            <attacher name="j.chetwynd">jay</attacher>
            
              <data encoding="base64">PD94bWwgdmVyc2lvbj0iMS4wIj8+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAv
c3ZnIj4KICA8ZGVmcz4KICAgIDxmaWx0ZXIgaWQ9InNwb25nZSI+CiAgICAgPGZlVHVyYnVsZW5j
ZSBiYXNlRnJlcXVlbmN5PSIwLjEiIHR5cGU9ImZyYWN0YWxOb2lzZSIgcmVzdWx0PSJyZXN1bHQx
Ii8+CiAgICAgPGZlRGlzcGxhY2VtZW50TWFwIGlkPSJmZURpc3BsYWNlbWVudE1hcCIgaW4yPSJy
ZXN1bHQxIgogICAgICAgICAgICAgICAgICAgICAgICAgeENoYW5uZWxTZWxlY3Rvcj0iRyIgeUNo
YW5uZWxTZWxlY3Rvcj0iRyIKICAgICAgICAgICAgICAgICAgICAgICAgIHNjYWxlPSI1MCIgaW49
IlNvdXJjZUdyYXBoaWMiLz4KICAgIDwvZmlsdGVyPgogIDwvZGVmcz4KPGcgdHJhbnNmb3JtPSJz
Y2FsZSg0KSI+CjxyZWN0IHg9IjIwIiB5PSIxNSIgcng9IjQiIHJ5PSI0IiB3aWR0aD0iMjAiIGhl
aWdodD0iNzIiICBzdHJva2U9Im5vbmUiIGZpbGw9IiNlYjQiIC8+CgogICA8cmVjdCB4PSIyMyIg
eT0iMTQiIHdpZHRoPSIxNCIgaGVpZ2h0PSI2NiINCiAgICAgICAgICBmaWxsPSIjZWEyIiBzdHJv
a2U9Im5vbmUiIHN0eWxlPSJmaWx0ZXI6dXJsKCNzcG9uZ2UpIi8+CjwvZz4KPC9zdmc+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>