Closed Bug 1911931 Opened 3 months ago Closed 3 months ago

[wpt-sync] Sync PR 47502 - [line-clamp] Allow clamp points after IFCs

Categories

(Core :: Layout: Scrolling and Overflow, task, P4)

task

Tracking

()

RESOLVED FIXED
131 Branch
Tracking Status
firefox131 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

(Blocks 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 47502 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/47502
Details from upstream follow.

Andreu Botella <abotella@igalia.com> wrote:

[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}

Component: web-platform-tests → Layout: Scrolling and Overflow
Product: Testing → Core

CI Results

Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 2 tests

Status Summary

Firefox

FAIL: 2

Chrome

PASS: 1
FAIL: 1

Safari

FAIL: 2

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a4320692f6d3 [wpt PR 47502] - [line-clamp] Allow clamp points after IFCs, a=testonly https://hg.mozilla.org/integration/autoland/rev/49614b2c9977 [wpt PR 47502] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 131 Branch
You need to log in before you can comment on or make changes to this bug.