layout: Recreate lazy block size when re-doing layout to avoid floats (#38366)

Block-level boxes that establish an independent formatting context need
to avoid overlapping floats. If their inline size stretches, then we may
need to lay out multiple times.

The problem was that when trying with a different inline size, the
intrinsic block size can change, but we were using the cached final
block size from the previous attempt.

Testing: Adding new test
Fixes: #38365

Signed-off-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
Oriol Brufau 2025-08-04 10:07:10 -07:00 committed by GitHub
parent 04ec710e60
commit b01bb462b6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 51 additions and 8 deletions

View file

@ -59963,6 +59963,19 @@
{}
]
],
"floats-bfc-003.html": [
"a40c6ae6c0e9edb2c696fc324abfa0c9eca35a91",
[
null,
[
[
"/css/reference/ref-filled-green-100px-square.xht",
"=="
]
],
{}
]
],
"floats-clear-multicol-000.html": [
"3598a2f7aba955b5ba3e6ee1739bfd468d2b28ea",
[