mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
layout: Fix a couple of issues relating to intrinsic widths of inline
blocks. * Stop double-counting border and padding for inline-block fragments. (Test case: `inline_block_border_intrinsic_size_a.html`.) * Take clearance into account when determining intrinsic widths of blocks containing floats. Improves the Amazon headers.
This commit is contained in:
parent
a346f95e68
commit
33087497ac
8 changed files with 118 additions and 8 deletions
|
@ -822,7 +822,7 @@ impl<'a> FlowConstructor<'a> {
|
|||
block_flow));
|
||||
let fragment = Fragment::new(node, fragment_info);
|
||||
|
||||
let mut fragment_accumulator = InlineFragmentsAccumulator::from_inline_node(node);
|
||||
let mut fragment_accumulator = InlineFragmentsAccumulator::new();
|
||||
fragment_accumulator.fragments.push_back(fragment);
|
||||
|
||||
let construction_item =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue