title: How do I create an SVG polygon with uniform stroke width?
body: <p>I am trying to create an SVG polygon with a border round the element (or in this case a stroke). This works for the most part however the clipped edges of the polygon appear to have a thicker stroke than the other sides. Is there a way to ensure that the stroke width is uniform round the shape.</p>
  
  <p>Here's an image illustrating the problem <a href="https://i.stack.imgur.com/e4IMD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/e4IMD.png" alt="enter image description here"></a></p>
  
  <p>The top left and bottom right edge have a visibly thicker stroke than the other sides or edges.</p>
  
  <p>The code is basically this</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;svg viewbox="0 0 100 100" height="500" width="500"&gt;
    &lt;polygon points="10, 0, 100, 0, 100, 90, 90, 100, 0, 100, 0, 10" style="fill:lime;stroke:purple;stroke-width:4" /&gt;
  &lt;/svg&gt;</code></pre>
  </div>
  </div>
  </p>