<?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>236947</bug_id>
          
          <creation_ts>2022-02-20 20:12:56 -0800</creation_ts>
          <short_desc>stroke-dasharray=&quot;0,...&quot; with round endcap is rendered incorrectly</short_desc>
          <delta_ts>2022-06-30 10:47:29 -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>Mac (Intel)</rep_platform>
          <op_sys>macOS 11</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>MOVED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>kevin</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</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>1844104</commentid>
    <comment_count>0</comment_count>
      <attachid>452708</attachid>
    <who name="">kevin</who>
    <bug_when>2022-02-20 20:12:56 -0800</bug_when>
    <thetext>Created attachment 452708
sample svg file

See the attached test case.

Chrome renders it correctly, Webkit does not. The last two lines should be almost identical. One has stroke-dasharray=&quot;0.001,1.999&quot; while the other has stroke-dasharray=&quot;0,2&quot;. Webkit is treating the latter as if it were &quot;1,1&quot;.

Release 140 (Safari 15.4, WebKit 16614.1.1.5)

---

&lt;svg viewBox=&quot;0 0 50 50&quot; width=&quot;500&quot; height=&quot;500&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot;&gt;
  &lt;line x1=&quot;1&quot; y1=&quot;1&quot; x2=&quot;49&quot; y2=&quot;1&quot; stroke-dasharray=&quot;1,1&quot; stroke-linecap=&quot;round&quot; stroke-width=&quot;1&quot; stroke=&quot;#000000&quot;&gt;&lt;/line&gt;
  &lt;line x1=&quot;1&quot; y1=&quot;11&quot; x2=&quot;49&quot; y2=&quot;11&quot; stroke-dasharray=&quot;0.5,1.5&quot; stroke-linecap=&quot;round&quot; stroke-width=&quot;1&quot; stroke=&quot;#000000&quot;&gt;&lt;/line&gt;

  &lt;!-- these last two should look identical, but they are quite different in Safari --&gt;
  &lt;line x1=&quot;1&quot; y1=&quot;21&quot; x2=&quot;49&quot; y2=&quot;21&quot; stroke-dasharray=&quot;0.001,1.999&quot; stroke-linecap=&quot;round&quot; stroke-width=&quot;1&quot; stroke=&quot;#000000&quot;&gt;&lt;/line&gt;
  &lt;line x1=&quot;1&quot; y1=&quot;31&quot; x2=&quot;49&quot; y2=&quot;31&quot; stroke-dasharray=&quot;0,2&quot; stroke-linecap=&quot;round&quot; stroke-width=&quot;1&quot; stroke=&quot;#000000&quot;&gt;&lt;/line&gt;
&lt;/svg&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1844362</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-02-21 13:37:11 -0800</bug_when>
    <thetext>&lt;rdar://problem/89254117&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1844363</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2022-02-21 13:37:51 -0800</bug_when>
    <thetext>This is a bug in an underlying graphics framework, and will be tracked by the above radar.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1879435</commentid>
    <comment_count>3</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2022-06-30 10:47:29 -0700</bug_when>
    <thetext>We believe the fix for this is available in macOS Ventura Beta 1 (and newer).</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>452708</attachid>
            <date>2022-02-20 20:12:56 -0800</date>
            <delta_ts>2022-02-20 20:12:56 -0800</delta_ts>
            <desc>sample svg file</desc>
            <filename>scratch_65.svg</filename>
            <type>image/svg+xml</type>
            <size>699</size>
            <attacher>kevin</attacher>
            
              <data encoding="base64">PHN2ZyB2aWV3Qm94PSIwIDAgNTAgNTAiIHdpZHRoPSI1MDAiIGhlaWdodD0iNTAwIiB4bWxucz0i
aHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxsaW5lIHgxPSIxIiB5MT0iMSIgeDI9IjQ5
IiB5Mj0iMSIgc3Ryb2tlLWRhc2hhcnJheT0iMSwxIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0
cm9rZS13aWR0aD0iMSIgc3Ryb2tlPSIjMDAwMDAwIj48L2xpbmU+CiAgPGxpbmUgeDE9IjEiIHkx
PSIxMSIgeDI9IjQ5IiB5Mj0iMTEiIHN0cm9rZS1kYXNoYXJyYXk9IjAuNSwxLjUiIHN0cm9rZS1s
aW5lY2FwPSJyb3VuZCIgc3Ryb2tlLXdpZHRoPSIxIiBzdHJva2U9IiMwMDAwMDAiPjwvbGluZT4K
CiAgPCEtLSB0aGVzZSBsYXN0IHR3byBzaG91bGQgbG9vayBpZGVudGljYWwsIGJ1dCB0aGV5IGFy
ZSBxdWl0ZSBkaWZmZXJlbnQgaW4gU2FmYXJpIC0tPgogIDxsaW5lIHgxPSIxIiB5MT0iMjEiIHgy
PSI0OSIgeTI9IjIxIiBzdHJva2UtZGFzaGFycmF5PSIwLjAwMSwxLjk5OSIgc3Ryb2tlLWxpbmVj
YXA9InJvdW5kIiBzdHJva2Utd2lkdGg9IjEiIHN0cm9rZT0iIzAwMDAwMCI+PC9saW5lPgogIDxs
aW5lIHgxPSIxIiB5MT0iMzEiIHgyPSI0OSIgeTI9IjMxIiBzdHJva2UtZGFzaGFycmF5PSIwLDIi
IHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLXdpZHRoPSIxIiBzdHJva2U9IiMwMDAwMDAi
PjwvbGluZT4KPC9zdmc+
</data>

          </attachment>
      

    </bug>

</bugzilla>