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 |
Properties
Name | Type | Description |
x | {{ domxref("SVGAnimatedLength") }} | Corresponds to attribute x on the given {{ SVGElement("rect") }} element. |
y | {{ domxref("SVGAnimatedLength") }} | Corresponds to attribute y on the given {{ SVGElement("rect") }} element. |
width | {{ domxref("SVGAnimatedLength") }} | Corresponds to attribute width on the given {{ SVGElement("rect") }} element. |
height | {{ domxref("SVGAnimatedLength") }} | Corresponds to attribute height on the given {{ SVGElement("rect") }} element. |
rx | {{ domxref("SVGAnimatedLength") }} | Corresponds to attribute rx on the given {{ SVGElement("rect") }} element. |
ry | {{ domxref("SVGAnimatedLength") }} | Corresponds to attribute 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