Closed Bug 2092724 Opened 21 days ago Closed 16 days ago

[wpt-sync] Sync PR 64602 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=327039

Categories

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

task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

(Blocks 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

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

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

Alan Baradlay <zalan@apple.com> wrote:

WebKit export of https://bugs.webkit.org/show_bug.cgi?id=327039

WebKit export from bug: [<!---->line-<!---->clamp]<!----> Floats paint past the block-<!---->end content edge of the line-<!---->clamp container

<pre>
[line-clamp] Floats paint past the block-end content edge of the line-clamp container

<div style="line-clamp: 2"><div style="float: left; width: 10px; height: 200px; background: green"></div>Line 1<br>Line 2<br>Line 3</div>

The float paints all the way down to its bottom, past the line-clamp container.
"Within a line-clamp container, floats which have not been made into invisible boxes must be visually clipped to the
unshaped block-end content edge of the line-clamp container."
<a href="https://drafts.csswg.org/css-overflow-4/#line-clamp-containers">https://drafts.csswg.org/css-overflow-4/#line-clamp-containers</a>

Now layout marks the visible floats of a line-clamp container as clipped (where it already decides whether they are invisible
boxes), and they get clipped to the container's block-end content edge (and nowhere else): floats without a layer
when the block that paints them paints them, floats with a layer (and the layers inside them) through the layer clip rects,
in the space of the float's parent so that a transform on the float does not move the clip.

line-clamp-with-floats-008 and -011 match their reference except for the gradient they paint the green square with
(the same plain linear-gradient square without line-clamp has the same difference), so they get fuzzy matching.

WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=327039">https://bugs.webkit.org/show_bug.cgi?id=327039</a>
WebKit-Canonical-Link: <a href="https://commits.webkit.org/323390@main">https://commits.webkit.org/323390@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, Chrome, and Safari on GitHub CI

Total 2 tests

Status Summary

Firefox

FAIL: 2

Chrome

PASS: 2

Safari

PASS: 2

Links

GitHub PR Head
GitHub PR Base

Details

Firefox-only Failures

New Tests That Don't Pass

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