Closed Bug 2095105 Opened 17 days ago Closed 14 days ago

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

task

Tracking

()

RESOLVED FIXED
163 Branch
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>

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

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

GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

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