Closed Bug 2089359 Opened 17 days ago Closed 9 days ago

[wpt-sync] Sync PR 64398 - [line-clamp] Floats shouldn't grow the height of line-clamp containers

Categories

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

task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Andreu Botella <abotella@igalia.com> wrote:

[line-clamp] Floats shouldn't grow the height of line-clamp containers

When a line-clamp container clamps, floats before the clamp point
don't grow the container past the clamp point. Instead, they get
clipped to the container's block-end content edge. But when the
container doesn't clamp, floats can make the container grow beyond the
point at which it'd clamp by height. This is our current behavior in
Chromium.

As per https://github.com/w3c/csswg-drafts/pull/14569, the CSSWG
resolved that if the line-clamp container doesn't clamp, floats would
also not grow the container, and they would also be clipped at the
block-end content edge. This CL implements this.

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

Whiteboard: [wptsync downstream] → [wptsync downstream error]
Component: web-platform-tests → Layout: Scrolling and Overflow
Product: Testing → Core
Whiteboard: [wptsync downstream error] → [wptsync downstream]

CI Results

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

Total 355 tests

Status Summary

Firefox

OK : 2
PASS: 2[GitHub] 12[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 15[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 270[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 273[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt]
FAIL: 83[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt] 86[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]

Chrome

FAIL: 2

Safari

PASS: 2

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Status: NEW → RESOLVED
Closed: 9 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.