mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +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
|
@ -704,6 +704,10 @@ pub struct BaseFlow {
|
|||
/// containing block. This is in tree order. This includes any direct children.
|
||||
pub abs_descendants: AbsDescendants,
|
||||
|
||||
/// The block-size of the block container of this flow, if it is an explicit size (does not
|
||||
/// depend on content heights). Used for computing percentage values for `height`.
|
||||
pub block_container_explicit_block_size: Option<Au>,
|
||||
|
||||
/// Offset wrt the nearest positioned ancestor - aka the Containing Block
|
||||
/// for any absolutely positioned elements.
|
||||
pub absolute_static_i_offset: Au,
|
||||
|
@ -786,6 +790,7 @@ impl BaseFlow {
|
|||
abs_descendants: Descendants::new(),
|
||||
absolute_static_i_offset: Au::new(0),
|
||||
fixed_static_i_offset: Au::new(0),
|
||||
block_container_explicit_block_size: None,
|
||||
absolute_cb: ContainingBlockLink::new(),
|
||||
display_list: DisplayList::new(),
|
||||
layers: DList::new(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue