github web-platform-tests/wpt merge_pr_48453

latest releases: merge_pr_49470, epochs/three_hourly/2024-12-03_06H, epochs/six_hourly/2024-12-03_06H...
4 months ago

[flex] Fix line cross-size calculation with extreme baselines.

As pointed out in:
WebKit/WebKit#31376 (comment)

Blink/WebKit were doing something incorrect when a baseline was
outside the border-box of a flex-item.

This was because we were initializing max_major_descent and
max_minor_descent to zero, instead of LayoutUnit::Min(), (similar
to FlexLine::max_major_ascent_ FlexLine::max_minor_ascent_).

This only occurs with a single item in a flex-line.

Change-Id: I4f32eb912a07247d16231451ba63e7c7a75a8b23
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5901280
Commit-Queue: Ian Kilpatrick ikilpatrick@chromium.org
Reviewed-by: David Grogan dgrogan@chromium.org
Cr-Commit-Position: refs/heads/main@{#1363827}

Don't miss a new wpt release

NewReleases is sending notifications on new releases.