Use the proper aspect ratio in flexbox (#33256)

When computing the automatic minimum size, flex layout was using the
natural aspect ratio, ignoring the `aspect-ratio` property.

`ReplacedContent::inline_size_over_block_size_intrinsic_ratio()` is now
made private to avoid more accidental uses.

Signed-off-by: Oriol Brufau <obrufau@igalia.com>
Co-authored-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
Oriol Brufau 2024-08-30 08:28:14 +02:00 committed by GitHub
parent 13cbcf614a
commit cd8b803368
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 57 additions and 28 deletions

View file

@ -235020,6 +235020,19 @@
{}
]
],
"flex-aspect-ratio-055.html": [
"d512d84c866a283c5e36b61c62062bf72d2b44f4",
[
null,
[
[
"/css/reference/ref-filled-green-100px-square-only.html",
"=="
]
],
{}
]
],
"floats-aspect-ratio-001.html": [
"53627d2134aacff311142d5513a5a662264143de",
[