[wpt-sync] Sync PR 65057 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=328560
Categories
(Core :: Layout: Scrolling and Overflow, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox163 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 65057 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/65057
Details from upstream follow.
Christian Biesinger <cbiesinger@igalia.com> wrote:
WebKit export of https://bugs.webkit.org/show_bug.cgi?id=328560
WebKit export from bug: [<!---->line-<!---->clamp]<!----> line-<!---->clamp:<!----> auto cannot clamp between nested sibling blocks
<pre>
[line-clamp] line-clamp: auto cannot clamp between nested sibling blocks"possible clamp points: [...] A point between two in-flow block-level sibling boxes in the line-clamp container's block formatting context."
<a href="https://drafts.csswg.org/css-overflow-4/#line-clamp-containers">https://drafts.csswg.org/css-overflow-4/#line-clamp-containers</a>These sibling boxes can be nested in other block-level boxes of the same block formatting context, but autoClampPoints only
looked at the children of the line-clamp container, so in line-clamp-auto-045 it never considered clamping after the nested
block with clearance, and clamped a line earlier with an ellipsis.Now autoClampPoints also goes into block-level children that are in the same block formatting context. Inside a box that
fits within the block size limit every clamp point is possible, since clamping there does not make it taller (e.g. a box with
max-height whose content overflows it, as in line-clamp-auto-044); inside the box that does not fit, it stops where the content
no longer fits, as before.A box to clamp after can now be nested, so LineClampUpdater keeps clampAfterBox when it propagates the line clamp to a
descendant. Such a box needs a next in-flow sibling to be a clamp point, and a nested block that does not end with a line box
gets the clamp point after it as well (the line box at the end of a block is followed by the clamp point after the line, which
gets the block ellipsis).WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=328560">https://bugs.webkit.org/show_bug.cgi?id=328560</a>
WebKit-Canonical-Link: <a href="https://commits.webkit.org/326379@main">https://commits.webkit.org/326379@main</a>
</pre>
| Assignee | ||
Updated•17 days ago
|
| Assignee | ||
Comment 1•17 days ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=122740
| Assignee | ||
Comment 2•17 days ago
|
||
CI Results
Ran 0 Firefox configurations based on mozilla-central, and Firefox, and Chrome on GitHub CI
Total 1 tests
Status Summary
Firefox
FAIL: 1
Chrome
PASS: 1
Links
Details
New Tests That Don't Pass
- /css/css-overflow/line-clamp/line-clamp-auto-069.html [wpt.fyi]:
FAIL(Chrome:PASS)
Comment 4•14 days ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/3786eea87a1c
https://hg.mozilla.org/mozilla-central/rev/6ee0d95a3a20
Description
•