<?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>185863</bug_id>
          
          <creation_ts>2018-05-22 05:00:25 -0700</creation_ts>
          <short_desc>Empty filter changes appearance of SVG group element containing mask</short_desc>
          <delta_ts>2022-12-14 14:31:16 -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>Safari 11</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jan Bösenberg">jan.boesenberg</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>dino</cc>
    
    <cc>sabouhallawa</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1426111</commentid>
    <comment_count>0</comment_count>
      <attachid>340973</attachid>
    <who name="Jan Bösenberg">jan.boesenberg</who>
    <bug_when>2018-05-22 05:00:25 -0700</bug_when>
    <thetext>Created attachment 340973
Test case showing the group without and with empty filter applied

In the attached test case (online version at http://jsbin.com/mewosoteya ) an empty filter is applied to a group element that contains two rect elements, of which one is masked.

It would be expected that the filter has no effect at all, but the empty filter changes the appearance of the displayed gradient. It does not make any difference if the filter&apos;s &quot;color-interpolation-filters&quot; attribute is set to &quot;sRGB&quot; or &quot;linearRGB&quot;.

On Safari only the left square is displayed correctly. The other two squares show a wrong gradient. On all other browsers all squares look the same.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1426446</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2018-05-22 19:02:32 -0700</bug_when>
    <thetext>&lt;rdar://problem/40472995&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1919311</commentid>
    <comment_count>2</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-12-14 14:31:07 -0800</bug_when>
    <thetext>I am not able to reproduce this bug in Safari 16.2 and the gradient is applied consistently across all three rectangles / boxes and it matches with Chrome Canary 110 and Firefox Nightly 110.

Please reopen if I am testing it incorrectly. Thanks!</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>340973</attachid>
            <date>2018-05-22 05:00:25 -0700</date>
            <delta_ts>2018-05-22 05:00:25 -0700</delta_ts>
            <desc>Test case showing the group without and with empty filter applied</desc>
            <filename>empty-filter-issue.svg</filename>
            <type>image/svg+xml</type>
            <size>1612</size>
            <attacher name="Jan Bösenberg">jan.boesenberg</attacher>
            
              <data encoding="base64">PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1s
bnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHdpZHRoPSI5MDAiIGhlaWdo
dD0iMjU2IiB2aWV3Qm94PSIwLDAsOTAwLDI1NiI+DQogICAgPGRlZnM+DQogICAgICA8bGluZWFy
R3JhZGllbnQgeDE9IjAiIHkxPSIwIiB4Mj0iMCIgeTI9IjI1NiIgaWQ9ImNvbG9yLTEiIGdyYWRp
ZW50VW5pdHM9InV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