Files
servo/components/layout
Oriol Brufau 15116d2cae layout: Resolve definite percentages when determining margin collapse (#32064)
Previously we were treating a definite 0% as zero, but a definite 100%
that resolved into 0px as non-zero.

That didn't make much sense, so this patch stops checking the computed
values, and instead checks the layout values which have already resolved
percentages. This also implies that we will now take `max-block-size`
into account.

This brings Servo closer to Blink, but differs from Gecko and WebKit.

Testing: Adding new test

Stylo PR: https://github.com/servo/stylo/pull/254

Signed-off-by: Oriol Brufau <obrufau@igalia.com>
2025-10-14 09:11:55 +00:00
..