<?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>126398</bug_id>
          
          <creation_ts>2014-01-02 13:03:10 -0800</creation_ts>
          <short_desc>&lt;img src=foo.svg&gt; where foo.svg is an SVG file that contains text looks blurry</short_desc>
          <delta_ts>2022-07-15 16:47:32 -0700</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>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc>https://rawgithub.com/espadrine/gh-badges/ccd6f1c7abc996e529366ca6b870c3a804271599/sheet.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>93471</dependson>
          <blocked>68469</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Mathias Bynens">mathias</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>dino</cc>
    
    <cc>krit</cc>
    
    <cc>mathias</cc>
    
    <cc>sabouhallawa</cc>
    
    <cc>thaddee.tyl</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>963850</commentid>
    <comment_count>0</comment_count>
    <who name="Mathias Bynens">mathias</who>
    <bug_when>2014-01-02 13:03:10 -0800</bug_when>
    <thetext>1. Open http://rawgithub.com/espadrine/gh-badges/ccd6f1c7abc996e529366ca6b870c3a804271599/img/dependencies-none.svg. You should see something like this: http://i.imgur.com/C1l3cX5.png This is perfect.
2. Now, open a page that includes this SVG file as an image, through `&lt;img src=…&gt;`, such as &lt;https://rawgithub.com/espadrine/gh-badges/ccd6f1c7abc996e529366ca6b870c3a804271599/sheet.html&gt;.
3. On that page, the SVG image has some rendering problems: the text is really blurry. Screenshot: http://i.imgur.com/xL5vxSK.png</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>963851</commentid>
    <comment_count>1</comment_count>
    <who name="Mathias Bynens">mathias</who>
    <bug_when>2014-01-02 13:08:06 -0800</bug_when>
    <thetext>Relevant Chromium bug tickets:
https://code.google.com/p/chromium/issues/detail?id=331385
https://code.google.com/p/chromium/issues/detail?id=331387

It has been suggested there that this might be related to zooming. However, I still see the blurry effect even without zooming in or out (i.e. 100% zoom) on a retina display.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>963869</commentid>
    <comment_count>2</comment_count>
    <who name="Dirk Schulze">krit</who>
    <bug_when>2014-01-02 13:54:39 -0800</bug_when>
    <thetext>I think it is a resolution problem in combination with retina displays.

You use SVG Filters to change the color of the text. Do you see the same problem without using filters on the text?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>964014</commentid>
    <comment_count>3</comment_count>
    <who name="Mathias Bynens">mathias</who>
    <bug_when>2014-01-02 23:09:18 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; I think it is a resolution problem in combination with retina displays.

Sounds about right. This is what a Chromium engineer said (https://code.google.com/p/chromium/issues/detail?id=331387#c5):

&gt; My guess is that the retina is rendering the SVG at non-retina res, and zooming it up 2x. So it&apos;s still a &quot;zoom&quot;, just implicit (in the same way that a non-retina PNG is resampled 2x by the browser).

&gt; You use SVG Filters to change the color of the text. Do you see the same problem without using filters on the text?

Removing the SVG filter applied to the text indeed removes the (unintended) blur.

FWIW, Firefox seemed to have the same issue, but it’s fixed now. https://bugzilla.mozilla.org/show_bug.cgi?id=600207</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>964016</commentid>
    <comment_count>4</comment_count>
    <who name="Dirk Schulze">krit</who>
    <bug_when>2014-01-02 23:16:16 -0800</bug_when>
    <thetext>(In reply to comment #3)
&gt; (In reply to comment #2)
&gt; &gt; I think it is a resolution problem in combination with retina displays.
&gt; 
&gt; Sounds about right. This is what a Chromium engineer said (https://code.google.com/p/chromium/issues/detail?id=331387#c5):
&gt; 
&gt; &gt; My guess is that the retina is rendering the SVG at non-retina res, and zooming it up 2x. So it&apos;s still a &quot;zoom&quot;, just implicit (in the same way that a non-retina PNG is resampled 2x by the browser).
&gt; 
&gt; &gt; You use SVG Filters to change the color of the text. Do you see the same problem without using filters on the text?
&gt; 
&gt; Removing the SVG filter applied to the text indeed removes the (unintended) blur.
&gt; 
&gt; FWIW, Firefox seemed to have the same issue, but it’s fixed now. https://bugzilla.mozilla.org/show_bug.cgi?id=600207

The filter blurring is a side effect of bug 93471. Let&apos;s see if that bug fixes the issue. It also depends if &lt;img&gt; gets the right resolution information.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>986385</commentid>
    <comment_count>5</comment_count>
    <who name="Mathias Bynens">mathias</who>
    <bug_when>2014-03-03 09:57:42 -0800</bug_when>
    <thetext>The old test case URL doesn’t work anymore — here’s the updated link: http://rawgithub.com/badges/gh-badges/ccd6f1c7abc996e529366ca6b870c3a804271599/sheet.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1884412</commentid>
    <comment_count>6</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2022-07-15 16:47:21 -0700</bug_when>
    <thetext>This continues to be an issue in Safari 8.5 years later.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1884413</commentid>
    <comment_count>7</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-07-15 16:47:32 -0700</bug_when>
    <thetext>&lt;rdar://problem/97100938&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>