diff options
author | Oriol Brufau <obrufau@igalia.com> | 2024-03-13 11:39:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-13 10:39:01 +0000 |
commit | 0860deba05956babf77a6acd26ff9cf41431c3f1 (patch) | |
tree | a44edca909557fb1f05a7858b156d6a310bdd39c /components/shared/canvas/webgl.rs | |
parent | 63527f56ca53ffad6be4d2552c8f7bb11bc945e2 (diff) | |
download | servo-0860deba05956babf77a6acd26ff9cf41431c3f1.tar.gz servo-0860deba05956babf77a6acd26ff9cf41431c3f1.zip |
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.
Diffstat (limited to 'components/shared/canvas/webgl.rs')
0 files changed, 0 insertions, 0 deletions