title: Fixed stroke width in SVG
body: <p>I would like to be able to set the stroke-width on an SVG element to be "pixel-aware", that is always be 1px wide regardless of the current scaling transformations applied. I am aware that this may well be impossible, since the whole point of SVG is to be pixel independent.</p>
  
  <p>Context follows:</p>
  
  <p>I have an SVG element with its viewBox and preserveAspectRatio attributes set. It looks something like this</p>
  
  <pre><code>&lt;svg version="1.1" baseProfile="full"
      viewBox="-100 -100 200 200" preserveAspectRatio="xMidYMid meet"
      xmlns="http://www.w3.org/2000/svg" &gt;
  &lt;/svg&gt;
  </code></pre>
  
  <p>This means that when I scale that element, the actual shapes inside it scale accordingly (so far so good).</p>
  
  <p>As you can see, I have set up the viewBox so that the origin is in the center. I would like to draw an x- and a y-axis within that element, which I do thus:</p>
  
  <pre><code>&lt;line x1="-1000" x2="1000" y1="0" y2="0" /&gt;
  </code></pre>
  
  <p>Again, this works fine. Ideally, though, this axis would always be only 1px wide. I have no interest in the axes getting fatter when i scale the parent svg element.</p>
  
  <p>So am I screwed?</p>