mirror of
https://github.com/servo/servo.git
synced 2025-10-11 05:50:19 +01:00
At the root of an inline formatting context, we used its vertical-align in order to compute the strut. That was wrong, since vertical-align on a block container shouldn't affect the contents, it should only affect the alignment of the block container (if it's inline-level) within the parent IFC. This was only working well if the block container was block-level, since effective_vertical_align_for_inline_layout returned `baseline` for block-level boxes. Instead of the outer display type, this patch changes the logic to check whether we are at the root of the IFC. |
||
---|---|---|
.. | ||
construct.rs | ||
float.rs | ||
inline.rs | ||
line.rs | ||
mod.rs | ||
root.rs | ||
text_run.rs |