mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
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:
parent
e8d0f85f52
commit
59c74c874a
4 changed files with 65 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue