Files
Emilio Cobos Álvarez fb61e154ec Bug 2034897 - Fix aspect-ratio handling in ComputeSizeWithIntrinsicDimensions. r=boris,firefox-style-system-reviewers,layout-reviewers,firefox-svg-reviewers,longsonr
Prefer aspect-ratio to the tentative BSize if we have both tentative
ISize and BSize.

Also make auto aspect-ratio handling a bit more explicit.

To prevent some regressions, we need to:

 * Fix size-containment aspect ratio for <embed> (nsSubDocumentFrame).
 * Fix RasterImage::GetIntrinsicRatio with uneven ratios.
 * Avoid SVG root from using the aspect ratio from the viewbox, see
   bug 2035918.

Differential Revision: https://phabricator.services.mozilla.com/D296982
2026-04-29 22:03:12 +00:00
..