Files
sousa-gecko/testing/web-platform/tests/css/css-overflow/line-clamp
Andreu Botella 0d1d54a204 Bug 2053651 [wpt PR 61163] - [line-clamp] Preserve the block-ellipsis state across relayouts, a=testonly
Automatic update from web-platform-tests
[line-clamp] Preserve the `block-ellipsis` state across relayouts

In https://crrev.com/c/7864326, a `block_ellipsis` field was added to
`LineClampData`. After https://crrev.com/c/7798861, when
`CSSLineClampAsShorthand` is disabled, there is no property active at
the inline formatting context where the ellipsis would be placed to
know whether we should place it, so this field stores that state.

However, if there is a relayout (as happens always for
`line-clamp: auto` if that clamps at all), when the `LineClampData`
struct in the relayout was being populated, this field was not copied.
This resulted in `line-clamp: auto no-ellipsis` ignoring the
`no-ellipsis` keyword in all cases.

Bug: 40336192
Change-Id: Ib11e6b7663442145949aed5ac1029ed85e63db20
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8064565
Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org>
Commit-Queue: Andreu Botella <abotella@igalia.com>
Cr-Commit-Position: refs/heads/main@{#1658928}

--

wpt-commits: 9c53e13e22c1b7c45f581a0ac037134a7228f951
wpt-pr: 61163
2026-07-12 11:57:45 +00:00
..