<?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>256064</bug_id>
          
          <creation_ts>2023-04-27 16:53:29 -0700</creation_ts>
          <short_desc>SVG &lt;marker&gt; elements are scaling when they should not be.</short_desc>
          <delta_ts>2023-05-04 16:54:19 -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>Mac (Apple Silicon)</rep_platform>
          <op_sys>macOS 13</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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 name="Justin Everett">justin.b.everett</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>1951680</commentid>
    <comment_count>0</comment_count>
    <who name="Justin Everett">justin.b.everett</who>
    <bug_when>2023-04-27 16:53:29 -0700</bug_when>
    <thetext>Marker elements are scaling with SVG images as opposed to being fixed to strokeSize or userSpaceOnUse.

Steps to recreate:

1. Display the following SVG in WebKit so that it fills its container:

&lt;svg viewBox=&apos;0 0 100 100&apos; xmlns=&quot;http://www.w3.org/2000/svg&quot;&gt;
  &lt;defs&gt;
    &lt;marker 
      id=&apos;circle&apos;
      viewBox=&apos;0 0 2 2&apos;
      refX=&quot;1&quot;
      refY=&quot;1&quot;
      markerWidth=&quot;2&quot;
      markerHeight=&quot;2&quot;
      markerUnits=&quot;userSpaceOnUse&quot;&gt;
      &lt;circle cx=&apos;1&apos; cy=&apos;1&apos; r=&apos;1&apos; fill=&quot;red&quot; /&gt; 
    &lt;/marker&gt;
  &lt;/defs&gt;
  &lt;line x1=&apos;2&apos; y1=&apos;2&apos; x2=&apos;98&apos; y2=&apos;2&apos; stroke=&apos;black&apos; stroke-width=&apos;2&apos; vector-effect=&quot;non-scaling-stroke&quot; marker-start=&apos;url(#circle)&apos; marker-end=&apos;url(#circle)&apos;/&gt;
&lt;/svg&gt;

2. Resize the window/container.

Marker elements change size while the stroke of the line does not. Replacing userSpaceOnUse with strokeWidth does not resolve the issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1953045</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-05-04 16:54:19 -0700</bug_when>
    <thetext>&lt;rdar://problem/108921711&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>