Skip to content

Commit

Permalink
Fix incorrect references in markerUnits docs (#3376)
Browse files Browse the repository at this point in the history
The markerUnits attribute defines the coordinate system for the markerWidth and markerHeight attributes, not markerWidth and markerUnits. This commit changes the docs to match the [SVG 1.1](https://www.w3.org/TR/SVG11/painting.html#MarkerUnitsAttribute) and [SVG 2](https://svgwg.org/svg2-draft/painting.html#MarkerUnitsAttribute) specs.
  • Loading branch information
atdyer authored Mar 23, 2021
1 parent 1e8c048 commit 3ecd86f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions files/en-us/web/svg/attribute/markerunits/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
---
<div>{{SVGRef}}</div>

<p>The <strong><code>markerUnits</code></strong> attribute defines the coordinate system for the {{SVGAttr("markerWidth")}} and {{SVGAttr("markerUnits")}} attributes and the contents of the {{SVGElement("marker")}}.</p>
<p>The <strong><code>markerUnits</code></strong> attribute defines the coordinate system for the {{SVGAttr("markerWidth")}} and {{SVGAttr("markerHeight")}} attributes and the contents of the {{SVGElement("marker")}}.</p>

<h2 id="Usage_notes">Usage notes</h2>

Expand All @@ -31,9 +31,9 @@ <h2 id="Usage_notes">Usage notes</h2>

<dl>
<dt><code>userSpaceOnUse</code></dt>
<dd>This value specifies that the <code>markerWidth</code> and <code>markerUnits</code> attributes and the contents of the <code>&lt;marker&gt;</code> element represent values in the current user coordinate system in place for the graphic object referencing the marker (i.e., the user coordinate system for the element referencing the <code>&lt;marker&gt;</code> element via a {{SVGAttr("marker")}}, <code>marker-start</code>, <code>marker-mid</code>, or <code>marker-end</code> property).</dd>
<dd>This value specifies that the <code>markerWidth</code> and <code>markerHeight</code> attributes and the contents of the <code>&lt;marker&gt;</code> element represent values in the current user coordinate system in place for the graphic object referencing the marker (i.e., the user coordinate system for the element referencing the <code>&lt;marker&gt;</code> element via a {{SVGAttr("marker")}}, <code>marker-start</code>, <code>marker-mid</code>, or <code>marker-end</code> property).</dd>
<dt><code>strokeWidth</code></dt>
<dd>This value specifies that the <code>markerWidth</code> and <code>markerUnits</code> attributes and the contents of the <code>&lt;marker&gt;</code> element represent values in a coordinate system which has a single unit equal the size in user units of the current stroke width (see the {{SVGAttr("stroke-width")}} attribute) in place for the graphic object referencing the marker.</dd>
<dd>This value specifies that the <code>markerWidth</code> and <code>markerHeight</code> attributes and the contents of the <code>&lt;marker&gt;</code> element represent values in a coordinate system which has a single unit equal the size in user units of the current stroke width (see the {{SVGAttr("stroke-width")}} attribute) in place for the graphic object referencing the marker.</dd>
</dl>

<h2 id="Specifications">Specifications</h2>
Expand Down Expand Up @@ -69,6 +69,6 @@ <h2 id="See_also">See also</h2>
<ul>
<li>{{SVGElement("marker")}}</li>
<li>{{SVGAttr("markerWidth")}}</li>
<li>{{SVGAttr("markerUnits")}}</li>
<li>{{SVGAttr("markerHeight")}}</li>
<li>{{SVGAttr("stroke-width")}}</li>
</ul>

0 comments on commit 3ecd86f

Please sign in to comment.