<?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>104169</bug_id>
          
          <creation_ts>2012-12-05 13:58:37 -0800</creation_ts>
          <short_desc>Data URI SVG Fills/Filters</short_desc>
          <delta_ts>2026-01-30 10:16:37 -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>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc>http://xn--dahlstrm-t4a.net/svg/paint/datauri-gradient.svg</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="Joey Hoer">me</reporter>
          <assigned_to name="Taher">taher_ali</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>c.laborier</cc>
    
    <cc>gwynne</cc>
    
    <cc>karlcow</cc>
    
    <cc>lecaignec.quentin</cc>
    
    <cc>maggotfish</cc>
    
    <cc>sabouhallawa</cc>
    
    <cc>tigt</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>784089</commentid>
    <comment_count>0</comment_count>
    <who name="Joey Hoer">me</who>
    <bug_when>2012-12-05 13:58:37 -0800</bug_when>
    <thetext>As per http://stackoverflow.com/questions/10798397/how-may-i-use-inline-svg-gradient-on-an-element-like-line and the example above, SVG Fills/Filters declared as Data URIs are nonfunctional.

Should work inline, internally and externally via CSS.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1526726</commentid>
    <comment_count>1</comment_count>
    <who name="Taylor Hunt">tigt</who>
    <bug_when>2019-04-12 06:29:38 -0700</bug_when>
    <thetext>This bit me recently trying to replicate ::-moz-range-progress (long story). 

Here’s another reduced test case for filters via data URIs specifically: https://s.codepen.io/tigt/debug/1c301f6c919e6c5aac2b0934585c747c

Two green squares should be visible, but in Safari only one is.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1762792</commentid>
    <comment_count>2</comment_count>
    <who name="Chris">c.laborier</who>
    <bug_when>2021-05-22 03:18:45 -0700</bug_when>
    <thetext>Same problem for me describe here (description + showcase) : 

https://stackoverflow.com/questions/67634831/css-filter-property-does-not-work-on-safari-when-using-inline-svg-in-css-like?noredirect=1#comment119571142_67634831</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1884328</commentid>
    <comment_count>3</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2022-07-15 15:46:33 -0700</bug_when>
    <thetext>Firefox handles this correctly. Safari and Chrome do not.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1884333</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-07-15 15:47:36 -0700</bug_when>
    <thetext>&lt;rdar://problem/97098436&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1917538</commentid>
    <comment_count>5</comment_count>
    <who name="Quentin LE CAIGNEC">lecaignec.quentin</who>
    <bug_when>2022-12-08 03:06:38 -0800</bug_when>
    <thetext>Same error here, an SVG filter as url(&quot;data:...&quot;) does not work on webkit. Webkit is the only browser on which this doesn&apos;t work, which is a shame given how useful this method is.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1917706</commentid>
    <comment_count>6</comment_count>
      <attachid>463947</attachid>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2022-12-08 13:13:35 -0800</bug_when>
    <thetext>Created attachment 463947
css-filter-svg-element.html

All CSS filters, including the referenced SVG filters, are not working on SVG elements. Attaching a simple test case.

This test case works if LBSE is enabled.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2175011</commentid>
    <comment_count>7</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2026-01-25 22:11:24 -0800</bug_when>
    <thetext>Working in Firefox, Chrome, and Safari (LBSE)
Not working in Safari.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2175012</commentid>
    <comment_count>8</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2026-01-25 22:12:05 -0800</bug_when>
    <thetext>Is there a strong dependency on LBSE?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2176597</commentid>
    <comment_count>9</comment_count>
    <who name="Taher">taher_ali</who>
    <bug_when>2026-01-30 10:16:37 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/57566</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>463947</attachid>
            <date>2022-12-08 13:13:35 -0800</date>
            <delta_ts>2022-12-08 13:13:35 -0800</delta_ts>
            <desc>css-filter-svg-element.html</desc>
            <filename>css-filter-svg-element.html</filename>
            <type>text/html</type>
            <size>182</size>
            <attacher name="Said Abou-Hallawa">sabouhallawa</attacher>
            
              <data encoding="base64">PHN0eWxlPgogIC5ncmF5LXNjYWxlLWZpbHRlcmVkIHsKICAgIGZpbHRlcjogZ3JheXNjYWxlKDgw
JSk7CiAgfQo8L3N0eWxlPgo8Ym9keT4KICA8c3ZnPgogICAgPHJlY3QgY2xhc3M9ImdyYXktc2Nh
bGUtZmlsdGVyZWQiIHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIiBmaWxsPSJyZWQiLz4KICA8L3N2
Zz4KPC9ib2R5Pgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>