Many frameworks and users do handle canvas size changes, but this is all riding on canvas.width/height == pixels.