Obey min-block-size and max-block-size in floats (#33241)

We were using the unclamped `box_size.block` instead of `block_size`.

Signed-off-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
Oriol Brufau 2024-08-29 13:24:07 +02:00 committed by GitHub
parent e8d0f85f52
commit 59c74c874a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 65 additions and 1 deletions

View file

@ -949,7 +949,7 @@ impl FloatBox {
inline_size.into(),
),
None => (
box_size.block.auto_is(|| {
block_size.auto_is(|| {
Length::from(independent_layout.content_block_size)
.clamp_between_extremums(
min_box_size.block,