The preserveAspectRatio attribute is used to force a uniform scaling for the purposes of preserving the aspect ratio of a graphic.

The official syntax for preserveAspectRatio is:

preserveAspectRatio = defer? <align> <meetOrSlice>?

The Default <align> Value Of preserveAspectRatio

preserveAspectRatio="none"

The svg content will be scaled to fit inside the viewport without maintaining the aspect ratio. All other values of preserveAspectRatio force uniform scaling while preserving the viewbox’s aspect ratio, and specify how to align the viewbox inside the viewport.

The Default <meetOrSlice> Value Of preserveAspectRatio

preserveAspectRatio="none meet"

results matching ""

    No results matching ""