A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.mozilla.org/en-US/docs/Web/API/SVGImageElement/preserveAspectRatio below:

SVGImageElement: preserveAspectRatio property - Web APIs

MDN Web Docs
  1. References
  2. Web APIs
  3. SVGImageElement
  4. preserveAspectRatio

Filter sidebar

In this article
  1. SVG API
  2. SVGImageElement
  3. Instance properties
    1. crossOrigin
    2. decoding
    3. height
    4. href
    5. preserveAspectRatio
    6. width
    7. x
    8. y
  4. Instance methods
    1. decode()
  5. Inheritance
    1. SVGGraphicsElement
    2. SVGElement
    3. Element
    4. Node
    5. EventTarget
  6. Related pages for SVG
    1. SVGAElement
    2. SVGAngle
    3. SVGAnimateColorElement Deprecated
    4. SVGAnimateElement
    5. SVGAnimateMotionElement
    6. SVGAnimateTransformElement
    7. SVGAnimatedAngle
    8. SVGAnimatedBoolean
    9. SVGAnimatedEnumeration
    10. SVGAnimatedInteger
    11. SVGAnimatedLength
    12. SVGAnimatedLengthList
    13. SVGAnimatedNumber
    14. SVGAnimatedNumberList
    15. SVGAnimatedPreserveAspectRatio
    16. SVGAnimatedRect
    17. SVGAnimatedString
    18. SVGAnimatedTransformList
    19. SVGAnimationElement
    20. SVGCircleElement
    21. SVGClipPathElement
    22. SVGComponentTransferFunctionElement
    23. SVGDefsElement
    24. SVGDescElement
    25. SVGDiscardElement Deprecated
    26. SVGElement
    27. SVGEllipseElement
    28. SVGFEBlendElement
    29. SVGFEColorMatrixElement
    30. SVGFEComponentTransferElement
    31. SVGFECompositeElement
    32. SVGFEConvolveMatrixElement
    33. SVGFEDiffuseLightingElement
    34. SVGFEDisplacementMapElement
    35. SVGFEDistantLightElement
    36. SVGFEDropShadowElement
    37. SVGFEFloodElement
    38. SVGFEFuncAElement
    39. SVGFEFuncBElement
    40. SVGFEFuncGElement
    41. SVGFEFuncRElement
    42. SVGFEGaussianBlurElement
    43. SVGFEImageElement
    44. SVGFEMergeElement
    45. SVGFEMergeNodeElement
    46. SVGFEMorphologyElement
    47. SVGFEOffsetElement
    48. SVGFEPointLightElement
    49. SVGFESpecularLightingElement
    50. SVGFESpotLightElement
    51. SVGFETileElement
    52. SVGFETurbulenceElement
    53. SVGFilterElement
    54. SVGForeignObjectElement
    55. SVGGElement
    56. SVGGradientElement
    57. SVGGraphicsElement
    58. SVGLength
    59. SVGLengthList
    60. SVGLineElement
    61. SVGLinearGradientElement
    62. SVGMPathElement
    63. SVGMarkerElement
    64. SVGMaskElement
    65. SVGMetadataElement
    66. SVGNumber
    67. SVGNumberList
    68. SVGPathElement
    69. SVGPatternElement
    70. SVGPoint Deprecated
    71. SVGPointList
    72. SVGPolygonElement
    73. SVGPolylineElement
    74. SVGPreserveAspectRatio
    75. SVGRadialGradientElement
    76. SVGRect
    77. SVGRectElement
    78. SVGSVGElement
    79. SVGScriptElement
    80. SVGSetElement
    81. SVGStopElement
    82. SVGStringList
    83. SVGStyleElement
    84. SVGSwitchElement
    85. SVGSymbolElement
    86. SVGTSpanElement
    87. SVGTextContentElement
    88. SVGTextElement
    89. SVGTextPathElement
    90. SVGTextPositioningElement
    91. SVGTitleElement
    92. SVGTransform
    93. SVGTransformList
    94. SVGUnitTypes
    95. SVGUseElement
    96. SVGViewElement
    97. TimeEvent
  7. Guides
    1. SVG
In this article SVGImageElement: preserveAspectRatio property

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.

The preserveAspectRatio read-only property of the SVGImageElement interface returns an SVGAnimatedPreserveAspectRatio corresponding to the preserveAspectRatio attribute of the given <image> element.

Value

An SVGAnimatedPreserveAspectRatio.

Specifications Specification Scalable Vector Graphics (SVG) 2
# PreserveAspectRatioAttribute
Browser compatibility Help improve MDN Was this page helpful to you? Learn how to contribute

.

This page was last modified on Apr 8, 2023 by MDN contributors.

View this page on GitHub

•

Report a problem with this content

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4