Thank you for your reply. To achieve the CSS box-shadow inset effect, I am scaling the canvas, as this mimics the behaviour of the spread radius in a box-shadow. If I am not wrong, the spread radius, depending on its value, effectively increases or decreases the size of the shadow, which is why scaling the canvas is a suitable approach in this case. I hope this clarifies my method.
Regards,
The Missing Semicolon