Files
firefox/testing/web-platform/tests/css/CSS2/linebox
Oriol Brufau 5c7dc0308a Bug 1885063 [wpt PR 45074] - Fix vertical alignment at the root of an IFC, a=testonly
Automatic update from web-platform-tests
Fix vertical alignment at the root of an IFC

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.

--

wpt-commits: 8771a8f4bdc91fe78ca440faa346249c2173c3a6
wpt-pr: 45074
2024-03-15 12:24:32 +00:00
..