ry attribute | ry property
Gets or sets the y-axis radius of a rounded corner rectangle.
![]() ![]() |
Syntax
| HTML |
|---|
<element ry="p" ... > |
| JavaScript |
|---|
p = object.ry |
Property values
Type: Object
The y-axis radius of the ellipse that is used to round the corners of a rectangle. A negative value is an error.
Standards information
- Scalable Vector Graphics: Basic Shapes, Section 9.8.1
Remarks
If you properly specify a value for the rx property but not for the ry property, the rect element is rendered with the effective value of ry equal to rx. If you properly specify a value for ry but not for rx, the rect element is rendered with the effective value of rx equal to ry.
If you do not properly specify rx or ry , the rect element is rendered without rounding, resulting in square corners.
If rx is greater than half of the width of the rectangle, the rect element is rendered with the effective value for rx as half of the width of the rectangle. If ry is greater than half of the height of the rectangle, the rect element is rendered with the effective value for ry as half of the height of the rectangle.
See also

