SVG Rect DOM interface
The SVGRectElement
interface provides access to the properties of {{ SVGElement("rect") }} elements, as well as methods to manipulate them.
Interface overview
Also implement |
{{ domxref("SVGElement") }}, {{ domxref("SVGTests") }}, {{ domxref("SVGLangSpace") }}, {{ domxref("SVGExternalResourcesRequired") }}, {{ domxref("SVGStylable") }}, {{ domxref("SVGTransformable") }} |
Methods |
None |
Properties |
- readonly {{ domxref("SVGAnimatedLength") }}
x
- readonly {{ domxref("SVGAnimatedLength") }}
y
- readonly {{ domxref("SVGAnimatedLength") }}
width
- readonly {{ domxref("SVGAnimatedLength") }}
height
- readonly {{ domxref("SVGAnimatedLength") }}
rx
- readonly {{ domxref("SVGAnimatedLength") }}
ry
|
Normative document |
SVG 1.1 (2nd Edition) |
Properties
Name |
Type |
Description |
x |
{{ domxref("SVGAnimatedLength") }} |
Corresponds to attribute {{ SVGAttr("x") }} on the given {{ SVGElement("rect") }} element. |
y |
{{ domxref("SVGAnimatedLength") }} |
Corresponds to attribute {{ SVGAttr("y") }} on the given {{ SVGElement("rect") }} element. |
width |
{{ domxref("SVGAnimatedLength") }} |
Corresponds to attribute {{ SVGAttr("width") }} on the given {{ SVGElement("rect") }} element. |
height |
{{ domxref("SVGAnimatedLength") }} |
Corresponds to attribute {{ SVGAttr("height") }} on the given {{ SVGElement("rect") }} element. |
rx |
{{ domxref("SVGAnimatedLength") }} |
Corresponds to attribute {{ SVGAttr("rx") }} on the given {{ SVGElement("rect") }} element. |
ry |
{{ domxref("SVGAnimatedLength") }} |
Corresponds to attribute {{ SVGAttr("ry") }} on the given {{ SVGElement("rect") }} element. |
Methods
The SVGRectElement
interface do not provide any specific methods.
Browser compatibility
{{ CompatibilityTable() }}
Feature |
Chrome |
Firefox (Gecko) |
Internet Explorer |
Opera |
Safari (WebKit) |
Basic support |
{{ CompatVersionUnknown() }} |
{{ CompatVersionUnknown() }} |
9.0 |
{{ CompatVersionUnknown() }} |
{{ CompatVersionUnknown() }} |
Feature |
Android |
Firefox Mobile (Gecko) |
IE Mobile |
Opera Mobile |
Safari Mobile |
Basic support |
{{ CompatNo() }} |
{{ CompatVersionUnknown() }} |
{{ CompatUnknown() }} |
{{ CompatVersionUnknown() }} |
{{ CompatVersionUnknown() }} |
See also
- {{ SVGElement("rect") }} SVG Element