aboutsummaryrefslogtreecommitdiffstats
path: root/components/shared/canvas/webgl.rs
diff options
context:
space:
mode:
authorOriol Brufau <obrufau@igalia.com>2024-03-13 11:39:01 +0100
committerGitHub <noreply@github.com>2024-03-13 10:39:01 +0000
commit0860deba05956babf77a6acd26ff9cf41431c3f1 (patch)
treea44edca909557fb1f05a7858b156d6a310bdd39c /components/shared/canvas/webgl.rs
parent63527f56ca53ffad6be4d2552c8f7bb11bc945e2 (diff)
downloadservo-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