The ________ property in SVG is crucial for defining how an SVG's dimensions are calculated relative to its container.

  • viewBox
  • preserveAspectRatio
  • width-height-ratio
  • container-sizing
The correct option is preserveAspectRatio. This property in SVG is essential for specifying how the aspect ratio of the SVG content should be preserved when it's scaled within its container, ensuring proper rendering in different viewports and layouts.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *