Back to Content

DOMRect: width property

files/en-us/web/api/domrect/width/index.md

latest332 B
Original Source

{{APIRef("Geometry Interfaces")}}{{AvailableInWorkers}}

The width property of the {{domxref("DOMRect")}} interface represents the width of the rectangle. The value can be negative.

Value

A double.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also

  • {{domxref("DOMRectReadOnly")}}