a
b
c
cx
cy
d
dx
dy
e
f
fx
fy
id
in1
in2
k1
k2
k3
k4
r1
r2
x
x1
x2
y
y1
y2
z
Expand Minimize

viewport attribute | viewport property

Gets or sets the current viewport.

Scalable Vector Graphics: Document Structure, Section 5.11.2Internet Explorer 9

Syntax

HTML
<element viewport="pViewportRect" ... >
JavaScript
pViewportRect = object.viewport

Property values

Type: Object

The current viewport.

Standards information

Remarks

Often, the current viewport is the nearest ancestor svg element. A value of NULL is returned if the given element is the outermost or furthest ancestor svg element.

See also

SVGSVGElement

 

 

Show:
© 2014 Microsoft