<?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>197147</bug_id>
          
          <creation_ts>2019-04-21 03:06:35 -0700</creation_ts>
          <short_desc>SVG textPath startOffset cannot be set smaller than 0% or larger than 100%</short_desc>
          <delta_ts>2022-08-29 03:43:47 -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 12</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>macOS 10.14</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <bug_file_loc>https://codepen.io/nadieh/pen/PgaRQO</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="Nadieh">nadiehbremer</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>mrflix</cc>
    
    <cc>rniwa</cc>
    
    <cc>sabouhallawa</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1529138</commentid>
    <comment_count>0</comment_count>
    <who name="Nadieh">nadiehbremer</who>
    <bug_when>2019-04-21 03:06:35 -0700</bug_when>
    <thetext>In the provided Codepen example you can find a testcase that shows two SVG texts, placed on a path with a textPath. In (my) Safari it looks as if they have a startOffset of 0%. However the first is set at -10% and the second at 110%. Chrome and Firefox show the expected offsets.


(This came up while wanting to animate in an SVG text on a path. Setting the startOffset &lt; 0% and animating this to &gt; 0% gave the expected results in Chrome and Firefox, but not Safari)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1529466</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-04-22 16:49:05 -0700</bug_when>
    <thetext>&lt;rdar://problem/50112923&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1566988</commentid>
    <comment_count>2</comment_count>
    <who name="Felix Niklas">mrflix</who>
    <bug_when>2019-08-31 07:59:55 -0700</bug_when>
    <thetext>Just stumbled upon the exact same bug in Safari.
I built this testcase: https://felixniklas.com/bug_reports/safari-negative-startoffset/ and then realized that it&apos;s already been reported.
The testcase shows the behavior with 0%, 50%, -50% and a real-world example.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1894469</commentid>
    <comment_count>3</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-08-29 03:43:39 -0700</bug_when>
    <thetext>I took the -50% startOffset broken Safari example from Comment 02 webpage and turned it into JSFiddle:

Link - https://jsfiddle.net/6s2dgpz8/show

All browsers (Chrome Canary 107, Firefox Nightly 106 and Safari Technology Preview 152) render it same and even Safari 15.6.1 as well.

While for real-world example:

JSFiddle Link - https://jsfiddle.net/sba96zuh/show

All browsers overlap the text while animating around box, Firefox is quite slow but it is something for Firefox to fix. But since all browsers are behaving as intended, I am going to mark this as &quot;RESOLVED CONFIGURATION CHANGED&quot;. Thanks!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>