mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
layout: Make percentage heights propagate through inline flows.
I found this random bug during an attempt to improve Wikipedia.
This commit is contained in:
parent
08e004d106
commit
39d7bf93d6
6 changed files with 51 additions and 18 deletions
|
@ -957,6 +957,13 @@ impl Flow for InlineFlow {
|
|||
fragment.assign_replaced_inline_size_if_necessary(inline_size);
|
||||
}
|
||||
}
|
||||
|
||||
// If there are any inline-block kids, propagate explicit block sizes down to them.
|
||||
let block_container_explicit_block_size = self.base.block_container_explicit_block_size;
|
||||
for kid in self.base.child_iter() {
|
||||
flow::mut_base(kid).block_container_explicit_block_size =
|
||||
block_container_explicit_block_size;
|
||||
}
|
||||
}
|
||||
|
||||
/// Calculate and set the block-size of this flow. See CSS 2.1 § 10.6.1.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue