DOMRectReadOnly

E1018157

DOMRectReadOnly is a read-only Web API interface representing the size and position of a rectangle, commonly used for layout and geometry calculations in the browser.

Jump to: Statements Referenced by

Statements (50)

Predicate Object
instanceOf Web API interface
read-only geometry interface
belongsToNamespace global Window scope in browsers
canBeConstructedWith new DOMRectReadOnly(otherDOMRect)
new DOMRectReadOnly(x, y, width, height)
canBeReturnedBy Element.getBoundingClientRect()
Element.getClientRects()
Range.getBoundingClientRect()
Range.getClientRects()
coordinateOrigin top-left corner of the viewport or element context
coordinateSystem CSS pixels
definedInSpecification Geometry Interfaces Module Level 1 NERFINISHED
hasConstructor DOMRectReadOnly() NERFINISHED
hasMethod toJSON()
hasProperty bottom
height
left
right
top
width
x
y
hasStaticMethod fromRect()
isBaseOf DOMRect NERFINISHED
isImmutable true
isReadOnly true
methodToJSONReturns JSON representation of the DOMRectReadOnly
partOf Geometry Interfaces Module NERFINISHED
propertyType_bottom double
propertyType_height double
propertyType_left double
propertyType_right double
propertyType_top double
propertyType_width double
propertyType_x double
propertyType_y double
providedBy Web APIs NERFINISHED
relatedInterface DOMPointReadOnly NERFINISHED
DOMQuad NERFINISHED
DOMRect NERFINISHED
serializationFormat JSON via toJSON()
staticMethodFromRectSignature DOMRectReadOnly.fromRect(other)
supportedIn modern desktop browsers
modern mobile browsers
typicalUsage reading layout box geometry without modifying it
usedFor geometry calculations
layout calculations
representing the size and position of rectangles
usedInContext web browsers
writableProperties none

Referenced by (1)

Full triples — surface form annotated when it differs from this entity's canonical label.

CSSOM View Module definesInterface DOMRectReadOnly