[wpt-sync] Sync PR 62431 - [line-clamp] Clip floats inside line-clamp containers
Categories
(Core :: Layout: Scrolling and Overflow, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox158 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 62431 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/62431
Details from upstream follow.
Andreu Botella <abotella@igalia.com> wrote:
[line-clamp] Clip floats inside line-clamp containers
As per https://github.com/w3c/csswg-drafts/issues/12665, floats
inside a line-clamp container should be clipped to the container's
bottom-end content edge. A previous CL, https://crrev.com/c/8138462,
addedPhysicalBoxFragment::IsLineClampClippedFloatto mark such
floats.This CL implements the actual clipping by adding a new clip node,
LineClampFloatClip, which is set on clipped floats. To keep track of
the edge to clip at, we add aline_clamp_float_clip_statefield to
PaintPropertyTreeBuilderFragmentContext::ContainingBlockContext,
storing a clip rect and the transform active at the line-clamp
container. We populate this field in
FragmentPaintPropertyTreeBuilder::UpdateForSelfwhen we reach a
line-clamp container, and we clear it whenever we enter a new
formatting context, since those floats won't be clipped to that
offset.Bug: 40336192, 445688004, 543371829
Change-Id: I6d4e700efd3084af07b36c6a11653f9fba26c92a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8137283
Commit-Queue: Andreu Botella \<abotella@igalia.com>
Reviewed-by: Xianzhu Wang \<wangxianzhu@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1693387}
| Assignee | ||
Updated•2 months ago
|
| Assignee | ||
Comment 1•2 months ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=93319
| Assignee | ||
Comment 2•2 months ago
|
||
CI Results
Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 4 tests
Status Summary
Firefox
FAIL: 4
Chrome
FAIL: 4
Safari
FAIL: 4
Links
Details
New Tests That Don't Pass
- /css/css-overflow/line-clamp/line-clamp-with-floats-008.html [wpt.fyi]:
FAIL(Chrome:FAIL, Safari:FAIL) - /css/css-overflow/line-clamp/line-clamp-with-floats-009.html [wpt.fyi]:
FAIL(Chrome:FAIL, Safari:FAIL) - /css/css-overflow/line-clamp/line-clamp-with-floats-013.html [wpt.fyi]:
FAIL(Chrome:FAIL, Safari:FAIL) - /css/css-overflow/line-clamp/line-clamp-with-floats-014.html [wpt.fyi]:
FAIL(Chrome:FAIL, Safari:FAIL)
Comment 4•2 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/26659fccad81
https://hg.mozilla.org/mozilla-central/rev/21fbf3ba781f
Description
•