I am using HTML5 <canvas> to draw strings.
When I resize from the default 300x150 to fit the dimensions of another <div> , my lines look stretched and thicker than before. Why is this happening?
I want to draw lines on the canvas to match the position of the elements on the <div> that is in front of it (with a higher z-index ) at the same position on the page. How can I stop this stretching?
EDIT: This only seems to be in Firefox.
html5 firefox resize canvas
StuperUser Jan 27 2018-11-11T00: 00Z
source share