Web/API/SVGAnimatedPreserveAspectRatio

From Get docs


SVG animated preserveAspectRatio interface

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

SVGAnimatedPreserveAspectRatio.baseVal Read only
Is a SVGPreserveAspectRatio that represents the base value of the given attribute before applying any animations.
SVGAnimatedPreserveAspectRatio.animVal Read only
Is a SVGPreserveAspectRatio that represents 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 compatibility

Update compatibility data on GitHub

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
SVGAnimatedPreserveAspectRatio Chrome

Full support Yes

Edge

Full support ≤18

Firefox

Full support Yes

IE

?

Opera

Full support Yes

Safari

Full support Yes

WebView Android

No support No

Chrome Android

Full support Yes

Firefox Android

Full support Yes

Opera Android

Full support Yes

Safari iOS

Full support Yes

Samsung Internet Android

Full support Yes

Legend

Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown