mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
layout: Don't use the existing block position as the float ceiling when
placing block formatting contexts in the sequential fallback. The existing block position isn't yet computed at that time, so it contains junk data. It just so happened to work on first reflow because that value is usually set to zero, but it usually failed on subsequent reflows. Improves certain Wikipedia pages. Closes #13630 (though Google is still broken; it was a separate bug and will be split off into a separate issue).
This commit is contained in:
parent
ef7423bf00
commit
5afe12ba2c
1 changed files with 3 additions and 5 deletions
|
@ -1494,11 +1494,9 @@ impl BlockFlow {
|
|||
debug_assert!(!self.is_flex());
|
||||
|
||||
// Compute the available space for us, based on the actual floats.
|
||||
let rect = self.base.floats.available_rect(
|
||||
self.base.position.start.b,
|
||||
self.fragment.border_box.size.block,
|
||||
content_box.size.inline
|
||||
);
|
||||
let rect = self.base.floats.available_rect(Au(0),
|
||||
self.fragment.border_box.size.block,
|
||||
content_box.size.inline);
|
||||
let available_inline_size = if let Some(rect) = rect {
|
||||
// Offset our position by whatever displacement is needed to not impact the floats.
|
||||
// Also, account for margins sliding behind floats.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue