Canvas.width

Function/Meaning
Drawing area width
Type
Canvas Class Properties
Explanation

Basically, it matches the client area, and there is a period (1 frame) that temporarily shifts from window resizing to redrawing.