title: Resize HTML5 canvas element
body: <p>How can I achieve, so that the HTML5 canvas element ist resizeable?</p>
  
  <p>I would like to implement this element so that you can scale it in any size. The event of the scaling should be the mouse which snaps the edge and the user resizes the element.</p>
  
  <p>I've already read about how you can achieve this on a object in the canvas element. But in my case I need this on the canvas element itself (<code>&lt;canvas&gt;</code>).</p>