layout: Use the border box, not the margin box, for placement of block

formatting contexts.

Improves Amazon.
This commit is contained in:
Patrick Walton 2015-05-01 15:11:46 -07:00
parent 5f6a740190
commit 986f81afa7
4 changed files with 55 additions and 3 deletions

View file

@ -1395,9 +1395,7 @@ impl BlockFlow {
}
let info = PlacementInfo {
size: LogicalSize::new(self.fragment.style.writing_mode,
self.base.position.size.inline,
self.fragment.border_box.size.block),
size: self.fragment.border_box.size,
ceiling: self.base.position.start.b,
max_inline_size: MAX_AU,
kind: FloatKind::Left,