mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
layout: Don't pretend inline fragment sizes are zero when placing them
between floats.
This commit is contained in:
parent
94306cd183
commit
8823f87276
3 changed files with 20 additions and 2 deletions
|
@ -444,7 +444,7 @@ impl LineBreaker {
|
|||
// Initially, pretend a splittable fragment has zero inline-size. We will move it later if
|
||||
// it has nonzero inline-size and that causes problems.
|
||||
let placement_inline_size = if first_fragment.can_split() {
|
||||
Au(0)
|
||||
first_fragment.minimum_splittable_inline_size()
|
||||
} else {
|
||||
first_fragment.margin_box_inline_size() + self.indentation_for_pending_fragment()
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue