servo/components/layout_2020/flow
Oriol Brufau 0860deba05
Fix vertical alignment at the root of an IFC (#31636)
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.
2024-03-13 10:39:01 +00:00
..
construct.rs clippy: Fix warnings in components/layout_2020 (#31611) 2024-03-11 14:24:33 +00:00
float.rs layout: make margin in pbm use app unit (#31621) 2024-03-13 03:15:20 +00:00
inline.rs Fix vertical alignment at the root of an IFC (#31636) 2024-03-13 10:39:01 +00:00
line.rs Fix vertical alignment at the root of an IFC (#31636) 2024-03-13 10:39:01 +00:00
mod.rs layout: make margin in pbm use app unit (#31621) 2024-03-13 03:15:20 +00:00
root.rs layout: Propagate overflow values from <body> to root element (#31618) 2024-03-13 09:17:09 +00:00
text_run.rs clippy: Fix warnings in components/layout_2020 (#31611) 2024-03-11 14:24:33 +00:00