W3cubDocs

/DOM

SVGAnimatedPreserveAspectRatio

The SVGAnimatedPreserveAspectRatio interface is used for attributes of type SVGPreserveAspectRatio which can be animated.

Interface overview

Also implement None
Methods None
Properties
  • readonly float baseVal
  • readonly float animVal
Normative document SVG 1.1 (2nd Edition)

Properties

Name Type Description
baseVal float The base value of the given attribute before applying any animations.
animVal float A read only SVGPreserveAspectRatio representing the current animated value of the given attribute. If the given attribute is not currently being animated, then the SVGPreserveAspectRatio will have the same contents as baseVal. The object referenced by animVal is always distinct from the one referenced by baseVal, even when the attribute is not animated.

Methods

The SVGAnimatedPreserveAspectRatio interface do not provide any specific methods.

Browser compatibilityUpdate compatibility data on GitHub

Desktop
Chrome Edge Firefox Internet Explorer Opera Safari
Basic support ? Yes ? ? ? ?
Mobile
Android webview Chrome for Android Edge Mobile Firefox for Android Opera for Android iOS Safari Samsung Internet
Basic support No ? Yes ? ? ? ?

© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedPreserveAspectRatio