[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)
Tracking
()
| 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>
| Assignee | ||
Updated•21 days ago
|
| Assignee | ||
Comment 1•21 days ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=119674
| Assignee | ||
Comment 2•20 days ago
|
||
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
Details
Firefox-only Failures
- /css/css-overflow/line-clamp/line-clamp-with-floats-008.html [wpt.fyi]:
FAIL - /css/css-overflow/line-clamp/line-clamp-with-floats-011.html [wpt.fyi]:
FAIL
New Tests That Don't Pass
- /css/css-overflow/line-clamp/line-clamp-with-floats-008.html [wpt.fyi]:
FAIL(Chrome:PASS, Safari:PASS) - /css/css-overflow/line-clamp/line-clamp-with-floats-011.html [wpt.fyi]:
FAIL(Chrome:PASS, Safari:PASS)
Comment 4•16 days ago
|
||
| bugherder | ||
Description
•