Back to Content

DOMRectReadOnly: x property

files/en-us/web/api/domrectreadonly/x/index.md

latest318 B
Original Source

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

The x read-only property of the DOMRectReadOnly interface represents the x coordinate of the DOMRect's origin.

Value

A double.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also

  • {{domxref("DOMRect")}}