Canvas is stretched when using CSS but normal with `width` & `height` attributes
It seems that the width and height attributes determine the width or height of the canvas’s coordinate system, whereas the CSS properties just determine the size of the box in which it will be shown. This is explained in the HTML specification: The canvas element has two attributes to control the size of the element’s …