<?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>208475</bug_id>
          
          <creation_ts>2020-03-02 14:42:34 -0800</creation_ts>
          <short_desc>vector-effect: non-scaling-stroke has no effect on a path with zero length</short_desc>
          <delta_ts>2020-03-02 17:56:16 -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>Safari Technology Preview</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>macOS 10.14</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>208441</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="Rich Harris">richard.a.harris</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>sabouhallawa</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1624752</commentid>
    <comment_count>0</comment_count>
    <who name="Rich Harris">richard.a.harris</who>
    <bug_when>2020-03-02 14:42:34 -0800</bug_when>
    <thetext>The CSS property `vector-effect: non-scaling stroke` maintains an SVG element&apos;s stroke width regardless of any transforms that have been applied to it, including transforms resulting from a viewBox.

When applied to a `&lt;path&gt;` element with a path length of zero, it has no effect.

To reproduce, create an HTML page with the following code and open it in Safari:

```html
&lt;svg preserveAspectRatio=&quot;none&quot; viewBox=&quot;0 0 100 100&quot;&gt;
  &lt;path stroke=&quot;red&quot; d=&quot;M25 50 A0 0 0 0 1 25 50&quot;&gt;&lt;/path&gt;
  &lt;path stroke=&quot;blue&quot; d=&quot;M75 50 A0 0 0 0 1 75.0001 50&quot;&gt;&lt;/path&gt;
&lt;/svg&gt;

&lt;style&gt;
  svg {
    width: 100%;
    height: 500px;
    border: 1px solid black;
  }

  path {
    stroke-width: 20px;
    stroke-linejoin: round;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
  }
&lt;/style&gt;
```

Expected result: the red dot and the blue dot are identically-sized. This is what happens in Chrome and Firefox.

Actual result: the red dot is larger, and stretched to the same degree as the SVG itself.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1624873</commentid>
    <comment_count>1</comment_count>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2020-03-02 17:56:16 -0800</bug_when>
    <thetext>

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

    </bug>

</bugzilla>