Closed Bug 1881780 Opened 2 years ago Closed 1 year ago

[wpt-sync] Sync PR 44748 - [line-clamp] Implement the line-clamp CSS property

Categories

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

task

Tracking

()

RESOLVED FIXED
126 Branch
Tracking Status
firefox126 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Andreu Botella <abotella@igalia.com> wrote:

[line-clamp] Implement the line-clamp CSS property

This patch adds the line-clamp property, as well as the
CSSLineClamp Blink feature. It also makes in-flow inline and block
elements after the clamp point hidden for paint in both line-clamp
and -webkit-line-clamp when that feature is enabled, reusing some
existing machinery for table cells.

This patch does not yet handle hiding out of flow boxes, or
height-based clamping. That is left for follow-up CLs.

Since -webkit-line-clamp and line-clamp would usually generate the
same ComputedStyle::LineClamp method, we instead give those methods
the custom names WebkitLineClamp and StandardLineClamp, and reuse
the existing method names LineClamp and HasLineClamp for custom
methods that take both properties into account.

Bug: 40336192
Change-Id: Ic7d0cf6f218b45bd2b7aa5bdd26adaeff9d492db
Reviewed-on: https://chromium-review.googlesource.com/5317993
WPT-Export-Revision: 083ef21e6f29b078e29c1bc8b512e74396de013c

Component: web-platform-tests → Layout: Scrolling and Overflow
Product: Testing → Core
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]

CI Results

Ran 8 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 19 tests

Status Summary

Firefox

PASS: 3
FAIL: 16

Chrome

PASS: 3
FAIL: 16

Safari

PASS: 3
FAIL: 16

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1a01893fd3c1 [wpt PR 44748] - [line-clamp] Implement the line-clamp CSS property, a=testonly https://hg.mozilla.org/integration/autoland/rev/362be167a23d [wpt PR 44748] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 126 Branch
You need to log in before you can comment on or make changes to this bug.