<?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>88877</bug_id>
          
          <creation_ts>2012-06-12 08:46:24 -0700</creation_ts>
          <short_desc>SVG Lightning filter effects incorrect under zoom</short_desc>
          <delta_ts>2018-01-03 16:00:45 -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>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>68469</blocked>
    
    <blocked>26389</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Philip Rogers">pdr</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>fmalita</cc>
    
    <cc>krit</cc>
    
    <cc>rhodovan.u-szeged</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>zherczeg</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>646976</commentid>
    <comment_count>0</comment_count>
    <who name="Philip Rogers">pdr</who>
    <bug_when>2012-06-12 08:46:24 -0700</bug_when>
    <thetext>fePointLight (and other filters) are incorrect if the page is zoomed. As an example, visit the following url and zoom in: http://www.w3.org/Graphics/SVG/Test/20110816/harness/htmlObjectApproved/filters-light-01-f.html

Expected: light sources zoom consistently.

Actual: light sources change in intensity and position.

(Original bug: crbug.com/130945)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>647010</commentid>
    <comment_count>1</comment_count>
    <who name="Dirk Schulze">krit</who>
    <bug_when>2012-06-12 09:36:07 -0700</bug_when>
    <thetext>I thought we already have a bug report for that? IIRC Reni or Zoltan were working on that but seem to be busy yet. Sadly the search engine</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>647576</commentid>
    <comment_count>2</comment_count>
    <who name="Robert Longson">longsonr</who>
    <bug_when>2012-06-12 18:41:39 -0700</bug_when>
    <thetext>http://www.w3.org/TR/SVG/filters.html#feDiffuseLightingElement Because they operate on pixels, such filters are inherently resolution-dependent. To make ‘feDiffuseLighting’ produce resolution-independent results, an explicit value should be provided for either the ‘filterRes’ attribute on the ‘filter’ element and/or attribute ‘kernelUnitLength’.

The testsuite test doesn&apos;t set these attributes so zooming in is likely to result in at least an intensity change depending on how it&apos;s implemented in Webkit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>647628</commentid>
    <comment_count>3</comment_count>
    <who name="Dirk Schulze">krit</who>
    <bug_when>2012-06-12 20:05:54 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; http://www.w3.org/TR/SVG/filters.html#feDiffuseLightingElement Because they operate on pixels, such filters are inherently resolution-dependent. To make ‘feDiffuseLighting’ produce resolution-independent results, an explicit value should be provided for either the ‘filterRes’ attribute on the ‘filter’ element and/or attribute ‘kernelUnitLength’.
&gt; 
&gt; The testsuite test doesn&apos;t set these attributes so zooming in is likely to result in at least an intensity change depending on how it&apos;s implemented in Webkit.

At the moment the light source position is transformed by using wrong transformations. That causes the issue. This is a known bug, that we have since filters render pixel perfect. FF handles this case correctly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>647629</commentid>
    <comment_count>4</comment_count>
    <who name="Dirk Schulze">krit</who>
    <bug_when>2012-06-12 20:08:02 -0700</bug_when>
    <thetext>(In reply to comment #3)
the issue. This is a known bug, that we have since filters render pixel perfect.

s/pixel-perfect/resolution-independent/ :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>647636</commentid>
    <comment_count>5</comment_count>
    <who name="Zoltan Herczeg">zherczeg</who>
    <bug_when>2012-06-12 20:33:30 -0700</bug_when>
    <thetext>I remember this bug very well, and I think we should fix it sometimes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>649351</commentid>
    <comment_count>6</comment_count>
    <who name="Florin Malita">fmalita</who>
    <bug_when>2012-06-14 11:52:22 -0700</bug_when>
    <thetext>A couple of problems I found (related to the original bug report - http://crbug.com/13094):

1) light source positioning: currently we&apos;re not transforming the light source *at all* (zoom or no zoom)
2) FELighting is applied in unmultiplied space, but the alpha channel is calculated as if in premultiplied space (spec says Sa = max(Sr, Sg, Sb), premultiplied RGBA implied). Then when the image is converted to premultiplied for compositing, the RGB values are scaled down resulting in a darker light effect.

I&apos;ll open a separate bug for #2.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1385587</commentid>
    <comment_count>7</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2018-01-03 16:00:45 -0800</bug_when>
    <thetext>Fixed via bug 181147 and bug 181197</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>