Name
Rect — a CSS rect( ) value
Availability
DOM Level 2 CSS
Properties
-
readonly
CSSPrimitiveValue
bottom
The bottom of the rectangle.
-
readonly
CSSPrimitiveValue
left
The left side of the rectangle.
-
readonly
CSSPrimitiveValue
right
The right side of the rectangle.
-
readonly
CSSPrimitiveValue
top
The top of the rectangle.
Description
This interface represents a CSS rect(top right bottom left)
value, as used with the CSS clip
attribute, for example. Consult a CSS reference for details.
See Also
Returned by
CSSPrimitiveValue.getRectValue( )
Get JavaScript: The Definitive Guide, Fourth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.