<?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>245248</bug_id>
          
          <creation_ts>2022-09-15 15:09:34 -0700</creation_ts>
          <short_desc>text-transform causes incorrect text placement in svg</short_desc>
          <delta_ts>2022-09-15 16:07:21 -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>Safari Technology Preview</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>171664</dup_id>
          
          <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="Ahmad Saleem">ahmad.saleem792</reporter>
          <assigned_to name="Ahmad Saleem">ahmad.saleem792</assigned_to>
          <cc>sabouhallawa</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1898820</commentid>
    <comment_count>0</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-09-15 15:09:34 -0700</bug_when>
    <thetext>Hi Team,

This would be another Blink Merge Candidate bug. I was not able to find any similar bug so I created a new.

The issue stems from where &quot;whitespace&quot; causes text within SVG to misplace and not render properly while using text-transform.

This was fixed by Blink in this commit - https://src.chromium.org/viewvc/blink?view=revision&amp;revision=184655

and in Webkit, we have to modify following:

https://github.com/WebKit/WebKit/blob/e3e969227c9e4c59148f4e78a81fb9cbc6e2a3a3/Source/WebCore/rendering/svg/RenderSVGInlineText.cpp#L100

and add few bits in above and also in here:

https://github.com/WebKit/WebKit/blob/0d7afc5a45c140c44497a81e92416f01306be877/Source/WebCore/rendering/svg/RenderSVGInlineText.h#L50

I am going to take it up and fix it and see how it goes.

Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1898840</commentid>
    <comment_count>1</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-09-15 16:07:21 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 171664 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>