<?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>88772</bug_id>
          
          <creation_ts>2012-06-11 03:03:11 -0700</creation_ts>
          <short_desc>Viewbox Scaling Exposes Incorrect Transformations on Text Gradient Fills</short_desc>
          <delta_ts>2023-01-21 06:44:24 -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>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>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Dominik Röttsches (drott)">d-r</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>eae</cc>
    
    <cc>krit</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>645873</commentid>
    <comment_count>0</comment_count>
    <who name="Dominik Röttsches (drott)">d-r</who>
    <bug_when>2012-06-11 03:03:11 -0700</bug_when>
    <thetext>When using a viewbox attribute that results in upscaling, text gradient fills are rendered incorrectly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>645891</commentid>
    <comment_count>1</comment_count>
      <attachid>146825</attachid>
    <who name="Dominik Röttsches (drott)">d-r</who>
    <bug_when>2012-06-11 04:11:02 -0700</bug_when>
    <thetext>Created attachment 146825
RefTests</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>645892</commentid>
    <comment_count>2</comment_count>
      <attachid>146825</attachid>
    <who name="Dominik Röttsches (drott)">d-r</who>
    <bug_when>2012-06-11 04:14:12 -0700</bug_when>
    <thetext>Comment on attachment 146825
RefTests

This reftest shows the issue. The gradient should scale from red over green to blue over the size of the text, same in both cases - with viewbox and without.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>651386</commentid>
    <comment_count>3</comment_count>
    <who name="Dominik Röttsches (drott)">d-r</who>
    <bug_when>2012-06-18 07:51:39 -0700</bug_when>
    <thetext>The issue seems to be with identifying the bounding box of small-scale text. Origin of bounding box for the text in LayoutTests/svg/transforms/viewbox-text-fill-gradient.html is 0,0 - extents are 1,1 - while these should be precise float  values.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>651420</commentid>
    <comment_count>4</comment_count>
    <who name="Dominik Röttsches (drott)">d-r</who>
    <bug_when>2012-06-18 09:07:07 -0700</bug_when>
    <thetext>In my understanding, the rounding happens in void SVGRootInlineBox::layoutRootBox(). Using LayoutUnits here, would only improve the results but not fix the issue completely - we need higher precision for the text bounding boxes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>651424</commentid>
    <comment_count>5</comment_count>
    <who name="Dominik Röttsches (drott)">d-r</who>
    <bug_when>2012-06-18 09:11:03 -0700</bug_when>
    <thetext>Probably same root cause as bug 75781.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>816515</commentid>
    <comment_count>6</comment_count>
    <who name="Dominik Röttsches (drott)">d-r</who>
    <bug_when>2013-01-25 05:31:37 -0800</bug_when>
    <thetext>This issue persists even after landing patch from bug 107771.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1927100</commentid>
    <comment_count>7</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-01-21 06:44:24 -0800</bug_when>
    <thetext>I took the test case from the attached patch and turned into JSFiddle and also added missing &lt;/rect&gt;:

JSFiddle - https://jsfiddle.net/9z4Ljr7y/show

Safari 16.2, Safari Technology Preview 161, Chrome Canary 111 and Firefox Nightly 111 are matching other, do we need to track anything else? Thanks!</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>146825</attachid>
            <date>2012-06-11 04:11:02 -0700</date>
            <delta_ts>2012-06-11 04:14:12 -0700</delta_ts>
            <desc>RefTests</desc>
            <filename>bug-88772-20120611141248.patch</filename>
            <type>text/plain</type>
            <size>2470</size>
            <attacher name="Dominik Röttsches (drott)">d-r</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTE5OTY3CmRpZmYgLS1naXQgYS9MYXlvdXRUZXN0cy9DaGFu
Z2VMb2cgYi9MYXlvdXRUZXN0cy9DaGFuZ2VMb2cKaW5kZXggZTM5MTYwNjkwODBiY2E3NTZjY2Ix
MTgwYjQxODMwMDNmMjc5NTA1Yy4uNzYxYWFhNzM0ZTU2YTYzMDc2NjY3NmE0ZTM4ZDc5Njc5MzFh
MTdkZiAxMDA2NDQKLS0tIGEvTGF5b3V0VGVzdHMvQ2hhbmdlTG9nCisrKyBiL0xheW91dFRlc3Rz
L0NoYW5nZUxvZwpAQCAtMSwzICsxLDEzIEBACisyMDEyLTA2LTExICBEb21pbmlrIFLDtnR0c2No
ZXMgIDxkb21pbmlrLnJvdHRzY2hlc0BpbnRlbC5jb20+CisKKyAgICAgICAgVmlld2JveCBTY2Fs
aW5nIEV4cG9zZXMgSW5jb3JyZWN0IFRyYW5zZm9ybWF0aW9ucyBvbiBUZXh0IEdyYWRpZW50IEZp
bGxzCisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD04ODc3
MgorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAgICogc3Zn
L3RyYW5zZm9ybXMvdmlld2JveC10ZXh0LWZpbGwtZ3JhZGllbnQtZX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