files/en-us/web/api/svgpreserveaspectratio/index.md
{{APIRef("SVG")}}
The SVGPreserveAspectRatio interface corresponds to the {{SVGAttr("preserveAspectRatio")}} attribute.
An SVGPreserveAspectRatio object can be designated as read only, which means that attempts to modify the object will result in an exception being thrown.
SVG_PRESERVEASPECTRATIO_* constants defined on this interface.SVG_MEETORSLICE_* constants defined on this interface.The SVGPreserveAspectRatio interface do not provide any specific methods.
SVG_PRESERVEASPECTRATIO_UNKNOWN (0)
SVG_PRESERVEASPECTRATIO_NONE (1)
none for attribute {{SVGAttr("preserveAspectRatio")}}.SVG_PRESERVEASPECTRATIO_XMINYMIN (2)
xMinYMin for attribute {{SVGAttr("preserveAspectRatio")}}.SVG_PRESERVEASPECTRATIO_XMIDYMIN (3)
xMidYMin for attribute {{SVGAttr("preserveAspectRatio")}}.SVG_PRESERVEASPECTRATIO_XMAXYMIN (4)
xMaxYMin for attribute {{SVGAttr("preserveAspectRatio")}}.SVG_PRESERVEASPECTRATIO_XMINYMID (5)
xMinYMid for attribute {{SVGAttr("preserveAspectRatio")}}.SVG_PRESERVEASPECTRATIO_XMIDYMID (6)
xMidYMid for attribute {{SVGAttr("preserveAspectRatio")}}.SVG_PRESERVEASPECTRATIO_XMAXYMID (7)
xMaxYMid for attribute {{SVGAttr("preserveAspectRatio")}}.SVG_PRESERVEASPECTRATIO_XMINYMAX (8)
xMinYMax for attribute {{SVGAttr("preserveAspectRatio")}}.SVG_PRESERVEASPECTRATIO_XMIDYMAX (9)
xMidYMax for attribute {{SVGAttr("preserveAspectRatio")}}.SVG_PRESERVEASPECTRATIO_XMAXYMAX (10)
xMaxYMax for attribute {{SVGAttr("preserveAspectRatio")}}.SVG_MEETORSLICE_UNKNOWN (0)
SVG_MEETORSLICE_MEET (1)
meet for attribute {{SVGAttr("preserveAspectRatio")}}.SVG_MEETORSLICE_SLICE (2)
slice for attribute {{SVGAttr("preserveAspectRatio")}}.{{Specifications}}
{{Compat}}