nearestViewportElement property
Gets a value that indicates which element established the current viewport.
![]() ![]() |
Syntax
| JavaScript |
|---|
p = object.nearestViewportElement |
Property values
Type: Object
The element that created the current viewport (typically the nearest ancestor svg element). This parameter is null if the current element is the outermost svg element.
Standards information
- Scalable Vector Graphics: Basic Data Types and Interfaces, Section 4.5.23
See also
- SVGClipPathElement
- SVGSVGElement
- SVGUseElement
- SVGCircleElement
- SVGEllipseElement
- SVGLineElement
- SVGRectElement
- SVGPolygonElement
- SVGPolylineElement
- SVGGElement
- SVGDefsElement
- SVGPathElement
- SVGTextElement
- SVGImageElement
- SVGAElement
- SVGSwitchElement
Build date: 11/21/2012

