property
width

num width
read / write

The width of this rectangle.

This is equivalent to the width function in jQuery and the calculated width CSS value, converted to a dimensionless num in pixels. Unlike [getBoundingClientRect], width will return the same numerical width if the element is hidden or not.