y2 attribute | y2 property

Gets or sets the absolute or relative y-coordinate for the second control point.

Scalable Vector Graphics (SVG) 1.1, Appendix MInternet Explorer 9

 

Syntax

HTML
<element y2="p" ... >

 

JavaScript
p = object.y2

 

Property values

Type: Floating-point

The absolute or relative y-coordinate for the second control point.

Exceptions

ExceptionCondition
NoModificationAllowedError

An attempt is made to modify an object that cannot be changed. For versions earlier than Internet Explorer 10, NO_MODIFICATION_ALLOWED_ERR is returned.

 

Standards information

Remarks

The y2 property represents a relative coordinate for lowercase path commands (for example, q and c), and an absolute coordinate for uppercase path commands Q and C.)

See also

SVGPathSegCurvetoCubicAbs
SVGPathSegCurvetoCubicRel
SVGPathSegCurvetoCubicSmoothAbs
SVGPathSegCurvetoCubicSmoothRel

 

 

Show: