[Webkit-unassigned] [Bug 236947] New: stroke-dasharray="0, ..." with round endcap is rendered incorrectly

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Feb 20 20:12:56 PST 2022


https://bugs.webkit.org/show_bug.cgi?id=236947

            Bug ID: 236947
           Summary: stroke-dasharray="0,..." with round endcap is rendered
                    incorrectly
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Mac (Intel)
                OS: macOS 11
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: SVG
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: kevinww at canva.com
                CC: sabouhallawa at apple.com, zimmermann at kde.org

Created attachment 452708

  --> https://bugs.webkit.org/attachment.cgi?id=452708&action=review

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="0.001,1.999" while the other has stroke-dasharray="0,2". Webkit is treating the latter as if it were "1,1".

Release 140 (Safari 15.4, WebKit 16614.1.1.5)

---

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

  <!-- these last two should look identical, but they are quite different in Safari -->
  <line x1="1" y1="21" x2="49" y2="21" stroke-dasharray="0.001,1.999" stroke-linecap="round" stroke-width="1" stroke="#000000"></line>
  <line x1="1" y1="31" x2="49" y2="31" stroke-dasharray="0,2" stroke-linecap="round" stroke-width="1" stroke="#000000"></line>
</svg>

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220221/ff3620e7/attachment-0001.htm>


More information about the webkit-unassigned mailing list