title: HTML5 canvas line width less that 1 pixel
body: <p>Is there any way to draw a rectangle whose composing lines have width thinner than 1 pixel?</p>
  
  <p>This code works perfectly, as expected:</p>
  
  <pre><code>// context is a HTML5 canvas 2D context
  context.lineWidth = 1;
  context.strokeStyle = "black";
  context.rect(0, 0, 20, 20);
  context.stroke();
  </code></pre>
  
  <p>It draws a nice rectangle.</p>
  
  <p>But, if I try to draw a rectangle with thinner lines:</p>
  
  <pre><code>// See line width
  context.lineWidth = 0.5;
  context.strokeStyle = "black";
  context.rect(0, 0, 20, 20);
  context.stroke();
  </code></pre>
  
  <p>It still draws a rectangle whose borders have 1 pixel width.</p>
  
  <p>I'm dealing with the canvas object here, and not CSS, where you have ways to "simulate" this.</p>