1. xah edu corner, extempore! episode № 20180409172936, on the suckiness of JavaScript DOM SVG font-size problem.
in this posts, i'll explain the problem, in real time. No js dom svg experience required.
2 say you want to write plot sine in svg. you start a canvas like this:
<svg width="100" height="100">.
the x start at 0 on left, and y start at 0 from top.
But you want to plot sin from -5 to 5, and y -1 to 1.
you can see immediately there's aspect ratio problem.