This page is Not Ready

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

preserveAspectRatio

Notes

Remarks

For elements that establish a new viewport, the preserveAspectRatio property applies only when you provide a value for the viewBox attribute on the same element. If you do not specify the viewBox attribute, the preserveAspectRatio attribute is ignored.

For image elements, preserveAspectRatio specifies how images are fitted relative to the reference rectangle. preserveAspectRatio also determines whether the aspect ratio of the image is preserved with respect to the user coordinate system.

Syntax

Standards information

See also

Related pages

Attributions