HTML Diff
0 added 0 removed
Original 2026-01-01
Modified 2026-03-09
1 <p>The second parameter in the preserveAspectRatio property is responsible for determining the behavior of the content relative to the viewport. It determines how exactly the content fills the space:</p>
1 <p>The second parameter in the preserveAspectRatio property is responsible for determining the behavior of the content relative to the viewport. It determines how exactly the content fills the space:</p>
2 &lt;svg viewBox="0 0 237 300" preserveAspectRatio="xMinYMin meet"&gt; … &lt;/svg&gt;<p>Possible values:</p>
2 &lt;svg viewBox="0 0 237 300" preserveAspectRatio="xMinYMin meet"&gt; … &lt;/svg&gt;<p>Possible values:</p>
3 <p>meet - The content fills the space in its entirety, leaving empty margins (as with background-size: contain). This is the default value.</p>
3 <p>meet - The content fills the space in its entirety, leaving empty margins (as with background-size: contain). This is the default value.</p>
4 <p>slice - The content fills the entire space, though some of the content may be cut off (similar to background-size: cover). The aspect ratio is the same in both cases.</p>
4 <p>slice - The content fills the entire space, though some of the content may be cut off (similar to background-size: cover). The aspect ratio is the same in both cases.</p>
5 <p>Padding is an optional parameter. It can be omitted.</p>
5 <p>Padding is an optional parameter. It can be omitted.</p>