Canvas inline height and width attributes overridden with css styles. Is this is a bug?
问题 I recently asked a question on how to draw an image larger than my canvas onto the canvas without cropping and save the image back into its original dimensions after performing some changes on it. I found the solution is to set the inline height and width attributes for the canvas larger than the image, and use css height and width properties to style the canvas to fit into your layout. For example, assuming my images could range between 400px to 2000 px in dimensions. But I don't want the