github web-platform-tests/wpt merge_pr_47502

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

[line-clamp] Allow clamp points after IFCs

For -webkit-line-clamp (and line-clamp with a number of lines),
the only place that could have a clamp point is after a line, so the
only place that calls BlockLineClampData::UpdateAfterLayout in
Chromium code is after laying out an in-flow child. When
line-clamp: auto was implemented, which can also clamp after a
block-level box, this call to UpdateAfterLayout also handled
clamping after such children boxes, when they were in-flow.

However, clamping after a new IFC was not tested until now, and as it
turns out it did not work, because UpdateAfterLayout was not called
in the equivalent code in HandleNewFormattingContext. This patch
fixes that.

Bug: 40336192
Change-Id: I7b67be2c64f95d3effdd15a6e348e6cde7ac8976
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5766555
Commit-Queue: Andreu Botella abotella@igalia.com
Reviewed-by: Ian Kilpatrick ikilpatrick@chromium.org
Cr-Commit-Position: refs/heads/main@{#1338198}

Don't miss a new wpt release

NewReleases is sending notifications on new releases.