servo/components/layout_2020
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
..
display_list layout: Propagate overflow values from <body> to root element (#31618) 2024-03-13 09:17:09 +00:00
flexbox layout: make margin in pbm use app unit (#31621) 2024-03-13 03:15:20 +00:00
flow Fix vertical alignment at the root of an IFC (#31636) 2024-03-13 10:39:01 +00:00
fragment_tree layout: Propagate overflow values from <body> to root element (#31618) 2024-03-13 09:17:09 +00:00
table clippy: Fix warnings in components/layout_2020 (#31611) 2024-03-11 14:24:33 +00:00
tests layout: Add initial support for text-transform (#31396) 2024-02-22 14:15:59 +00:00
Cargo.toml layout: Add support for box-shadow to Layout 2020 (#31453) 2024-03-07 11:13:57 +00:00
cell.rs Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
context.rs Lint layout_2020 with clippy (#31169) 2024-01-25 09:03:31 +00:00
dom.rs Treat video elements as replaced content and render the current frame. (#31412) 2024-02-23 17:34:08 +00:00
dom_traversal.rs layout: Do not inherit node and fragment flags in anonymous boxes (#31586) 2024-03-09 09:13:19 +00:00
formatting_contexts.rs Fix size of tables in flow layout (#31455) 2024-03-02 01:39:41 +00:00
geom.rs layout: make margin in pbm use app unit (#31621) 2024-03-13 03:15:20 +00:00
layout_debug.rs Lint layout_2020 with clippy (#31169) 2024-01-25 09:03:31 +00:00
lib.rs make ContainingBlock use Au for inline_size and block_size (#31370) 2024-02-20 09:14:44 +00:00
lists.rs layout: Do not inherit node and fragment flags in anonymous boxes (#31586) 2024-03-09 09:13:19 +00:00
positioned.rs layout: make margin in pbm use app unit (#31621) 2024-03-13 03:15:20 +00:00
query.rs clippy: Fix warnings in components/layout_2020 (#31611) 2024-03-11 14:24:33 +00:00
replaced.rs Treat video elements as replaced content and render the current frame. (#31412) 2024-02-23 17:34:08 +00:00
sizing.rs layout: Add initial support for row height distribution (#31421) 2024-02-29 12:12:54 +00:00
style_ext.rs Fix vertical alignment at the root of an IFC (#31636) 2024-03-13 10:39:01 +00:00
traversal.rs Lint layout_2020 with clippy (#31169) 2024-01-25 09:03:31 +00:00