Name
CSSPrimitiveValue.getRectValue( ) — return a Rect value
Availability
DOM Level 2 CSS
Synopsis
Rect getRectValue( ) throws DOMException;
Returns
The Rect object that represents the value of this CSSPrimitiveValue.
Throws
This method throws a DOMException with a code
of
INVALID_ACCESS_ERR
if the
primitiveType
property is not
CSS_RECT
.
Description
This method returns a Rect object that represents a CSS rectangle.
There is no corresponding setRectValue( )
method,
but you can modify the value by setting the properties of the
returned Rect object.
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.