<?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>250631</bug_id>
          
          <creation_ts>2023-01-14 18:09:12 -0800</creation_ts>
          <short_desc>Clip the start position when performing SVG text queries</short_desc>
          <delta_ts>2023-10-31 08:24:41 -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>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=120451</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BrowserCompat, InRadar</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="Nobody">webkit-unassigned</assigned_to>
          <cc>sabouhallawa</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1925625</commentid>
    <comment_count>0</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-01-14 18:09:12 -0800</bug_when>
    <thetext>Hi Team,

Another failing text from Blink&apos;s commit:

Test - https://jsfiddle.net/uyh48n62/show

^ Failing in Safari 16.2 while passing in Chrome Canary 111 and Firefox Nightly 110

Blink Commit - https://chromium.googlesource.com/chromium/blink/+/55ceb3d896e75fbb5d3bb10e12b17b10d297bf27

WebKit Source - https://searchfox.org/wubkat/source/Source/WebCore/rendering/svg/SVGTextQuery.cpp#147

Just wanted raise to fix this.

Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1925667</commentid>
    <comment_count>1</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-01-15 06:30:44 -0800</bug_when>
    <thetext>So this one has pre-requisite bug 120451.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1925668</commentid>
    <comment_count>2</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-01-15 06:31:40 -0800</bug_when>
    <thetext>PR - https://github.com/WebKit/WebKit/pull/8664

The test still fail and need to add platform specific expectations (if we want to land without pre-requisite) on GTK and Windows.

I am closing my PR but it is something still we need to track and fix.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1927187</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-01-21 18:10:17 -0800</bug_when>
    <thetext>&lt;rdar://problem/104518891&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1977890</commentid>
    <comment_count>4</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-09-17 01:55:53 -0700</bug_when>
    <thetext>NOTE - This got reverted because of potential SVG Text optimisation done in Blink but the test case is still interesting, so let&apos;s keep this bug open.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1977891</commentid>
    <comment_count>5</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-09-17 01:58:05 -0700</bug_when>
    <thetext>Updated Test Case from Blink: https://jsfiddle.net/xfb7mahe/show</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1977922</commentid>
    <comment_count>6</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-09-17 11:27:00 -0700</bug_when>
    <thetext>NOTE - This bug get fixed with bug 261651.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1986663</commentid>
    <comment_count>7</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-10-21 03:26:50 -0700</bug_when>
    <thetext>I think this blink commit is not right fix since with other SVGTextQuery optimization, this is still not fixed. It is to account for &apos;RTL&apos; content in SVG.

Could be &apos;unsigned&apos; (which is not negative) and &apos;int&apos; (negative) as well thing?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1988847</commentid>
    <comment_count>8</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-10-31 08:24:41 -0700</bug_when>
    <thetext>Firefox Nightly 121 and Chrome Canary 120 passes this: https://jsfiddle.net/xfb7mahe/show

Adding &apos;BrowserCompat&apos;.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>