[wpt-sync] Sync PR 45709 - [line-clamp] Make `line-clamp` create a new BFC
Categories
(Core :: Layout: Scrolling and Overflow, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox127 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 45709 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/45709
Details from upstream follow.
Andreu Botella <abotella@igalia.com> wrote:
[line-clamp] Make
line-clampcreate a new BFCAlthough
-webkit-line-clamphas always created an independent
formatting context, our prototype implementation ofline-clamp
initially made it so theline-clampproperty (but not
-webkit-line-clamp) didn't necessarily create one.However, in the course of implementing this proposal, the fact that it
did not necessarily create a new BFC raised issues, such as how nested
line-clamps should work, or how floats inside a line-clamp container
should affect floats outside it. These problems go away by having
line-clamp create a new BFC, and this CL takes that route.This patch also removes
BlockLineClampData::is_original_line_clamp_context, which was needed
to be able to distinguish whether(-webkit-)line-clampwas specified
on the current block element, or whether it inherited its line clamp
data from its parent. With this change, checking if the current block
is a new BFC is enough.Bug: 40336192
Change-Id: I8a16ec18ce1653caaf1c7d06280a2a7e4604a946
Reviewed-on: https://chromium-review.googlesource.com/5453431
WPT-Export-Revision: 336414e0cc3672fae36bae912c1d062bb5bb7508
| Assignee | ||
Comment 1•2 years ago
|
||
| Assignee | ||
Updated•2 years ago
|
| Assignee | ||
Comment 2•2 years ago
|
||
| Assignee | ||
Comment 3•2 years ago
|
||
CI Results
Ran 9 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
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /css/css-overflow/line-clamp-with-floats-005.tentative.html [wpt.fyi]:
FAIL(Chrome:FAIL, Safari:FAIL) - /css/css-overflow/line-clamp-with-floats-006.tentative.html [wpt.fyi]:
FAIL(Chrome:FAIL, Safari:FAIL) - /css/css-overflow/line-clamp-with-floats-007.tentative.html [wpt.fyi]:
FAIL(Chrome:FAIL, Safari:FAIL) - /css/css-overflow/line-clamp-with-floats-010.tentative.html [wpt.fyi]:
FAIL(Chrome:FAIL, Safari:FAIL)
Comment 5•2 years ago
|
||
| bugherder | ||
Description
•