Handle aspect ratios in ReplacedContent::inline_content_sizes (#33240)

We were only handling the aspect ratio of a replaced element when
computing its min/max-content contribution, but not when computing
the min/max-content size. Now both cases will take it into account.

Signed-off-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
Oriol Brufau 2024-08-29 17:38:59 +02:00 committed by GitHub
parent 3f93de7f54
commit 0643aa4708
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 39 additions and 59 deletions

View file

@ -1,7 +1,4 @@
[flex-aspect-ratio-img-column-011.html]
[.flexbox 5]
expected: FAIL
[.flexbox 7]
expected: FAIL

View file

@ -1,9 +1,3 @@
[flex-aspect-ratio-img-row-005.html]
[img 1]
expected: FAIL
[img 2]
expected: FAIL
[img 3]
expected: FAIL

View file

@ -1,7 +1,4 @@
[image-as-flexitem-size-001.html]
[.flexbox > img 3]
expected: FAIL
[.flexbox > img 4]
expected: FAIL

View file

@ -13,6 +13,3 @@
[.flexbox > img 6]
expected: FAIL
[.flexbox > img 3]
expected: FAIL

View file

@ -19,6 +19,3 @@
[.flexbox > img 10]
expected: FAIL
[.flexbox > img 3]
expected: FAIL

View file

@ -19,6 +19,3 @@
[.flexbox > img 10]
expected: FAIL
[.flexbox > img 3]
expected: FAIL

View file

@ -1,7 +1,4 @@
[image-as-flexitem-size-007.html]
[.flexbox > img 3]
expected: FAIL
[.flexbox > img 4]
expected: FAIL

View file

@ -13,6 +13,3 @@
[.flexbox > img 6]
expected: FAIL
[.flexbox > img 3]
expected: FAIL

View file

@ -1,2 +0,0 @@
[flex-aspect-ratio-017.html]
expected: FAIL

View file

@ -1,6 +0,0 @@
[percentage-height-in-flexbox.html]
[#target offsetSize matches #container offsetSize]
expected: FAIL
[#target offsetSize matches #container offsetSize after resize]
expected: FAIL