fune/testing/web-platform/tests/css/css-overflow/reference
Andreu Botella ef75c52f9a Bug 1894006 [wpt PR 45954] - [line-clamp] Initial implementation of line-clamp: auto, a=testonly
Automatic update from web-platform-tests
[line-clamp] Initial implementation of `line-clamp: auto`

This CL implements `line-clamp: auto`, which allows line-clamping a
block container based on the value of the `height` and `max-height`
properties. This patch only implements this for line-clamp containers
which only contain an `InlineNode`, and it leaves the complexity of
clamping inside nested block boxes for follow-up CLs.

This implementation adds a new state to `LineClampData` called
`kClampByBfcOffset`, which stores the BFC offset into the line-clamp
container to clamp. This is set through
`BlockLineClampData::UpdateClampOffsetFromStyle` when the line-clamp
container starts layout.

After a box or line box is laid out, the BFC offset after that box is
compared against the clamp BFC offset. If it matches, then that offset
is used as the container's intrinsic size. However, if it goes past
the offset, and the previous box or line box did not go past it, then
the block box is relaid out, using the previous box's BFC offset as
the clamp BFC offset.

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

--

wpt-commits: 76a4828ff61683e4c393fa28e186b179cb321610
wpt-pr: 45954
2024-05-23 10:01:19 +00:00
..
input-scrollable-region-001-ref.html
line-clamp-010-ref.html
line-clamp-011-ref.html
line-clamp-012-ref.html
line-clamp-013-ref.html
line-clamp-015-ref.html
line-clamp-021-ref.html Bug 1889074 [wpt PR 45465] - [line-clamp] Don't treat clamped content as scrollable overflow, a=testonly 2024-04-19 07:33:42 +00:00
line-clamp-auto-002-ref.html Bug 1894006 [wpt PR 45954] - [line-clamp] Initial implementation of line-clamp: auto, a=testonly 2024-05-23 10:01:19 +00:00
line-clamp-auto-005-ref.html Bug 1894006 [wpt PR 45954] - [line-clamp] Initial implementation of line-clamp: auto, a=testonly 2024-05-23 10:01:19 +00:00
line-clamp-auto-011-ref.html Bug 1894006 [wpt PR 45954] - [line-clamp] Initial implementation of line-clamp: auto, a=testonly 2024-05-23 10:01:19 +00:00
line-clamp-auto-016-ref.html Bug 1894006 [wpt PR 45954] - [line-clamp] Initial implementation of line-clamp: auto, a=testonly 2024-05-23 10:01:19 +00:00
line-clamp-with-abspos-001-ref.html
line-clamp-with-abspos-005-ref.html
line-clamp-with-abspos-006-ref.html
line-clamp-with-abspos-007-ref.html
line-clamp-with-abspos-008-ref.html
line-clamp-with-abspos-010-ref.html
line-clamp-with-abspos-011-ref.html Bug 1889074 [wpt PR 45465] - [line-clamp] Don't treat clamped content as scrollable overflow, a=testonly 2024-04-19 07:33:42 +00:00
line-clamp-with-floats-001-ref.html Bug 1889855 [wpt PR 45568] - [line-clamp] Hide floats after the clamp point, a=testonly 2024-04-15 08:50:48 +00:00
line-clamp-with-floats-005-ref.html Bug 1891445 [wpt PR 45709] - [line-clamp] Make line-clamp create a new BFC, a=testonly 2024-04-19 07:34:54 +00:00
line-clamp-with-floats-006-ref.html Bug 1891445 [wpt PR 45709] - [line-clamp] Make line-clamp create a new BFC, a=testonly 2024-04-19 07:34:54 +00:00
line-clamp-with-floats-007-ref.html Bug 1891445 [wpt PR 45709] - [line-clamp] Make line-clamp create a new BFC, a=testonly 2024-04-19 07:34:54 +00:00
line-clamp-with-floats-008-ref.html Bug 1889855 [wpt PR 45568] - [line-clamp] Hide floats after the clamp point, a=testonly 2024-04-15 08:50:48 +00:00
line-clamp-with-floats-010-ref.html Bug 1891445 [wpt PR 45709] - [line-clamp] Make line-clamp create a new BFC, a=testonly 2024-04-19 07:34:54 +00:00
overflow-body-no-propagation-ref.html
overflow-body-propagation-ref.html
overflow-ellipsis-dynamic-001-ref.html
overflow-inline-block-with-opacity-ref.html Bug 1724544 [wpt PR 29939] - Add a test for visual overflow progression, a=testonly 2021-08-14 08:15:12 +00:00
overflow-recalc-001-ref.html
ref-if-there-is-no-red.xht Bug 1694007 [wpt PR 27718] - Added a semi-complex margin-bottom-end test, a=testonly 2022-05-15 20:20:51 +00:00
text-overflow-ellipsis-001-ref.html Bug 1624121 [wpt PR 22380] - Fix ellipsis position for RTL elements, a=testonly 2020-03-26 11:40:04 +00:00
text-overflow-ellipsis-002-ref.html
text-overflow-ellipsis-rtl-001-ref.html
text-overflow-ellipsis-vertical-001-ref.html
text-overflow-ellipsis-vertical-rtl-001-ref.html
text-overflow-scroll-001-ref.html
text-overflow-scroll-rtl-001-ref.html
text-overflow-scroll-vertical-lr-001-ref.html Bug 1624270 [wpt PR 22388] - [LayoutNG] Add tests for text-overflow: ellipsis with scrolling, a=testonly 2020-03-31 11:31:08 +00:00
text-overflow-scroll-vertical-lr-rtl-001-ref.html
webkit-line-clamp-001-ref.html
webkit-line-clamp-005-ref.html
webkit-line-clamp-006-ref.html
webkit-line-clamp-007-ref.html
webkit-line-clamp-008-ref.html
webkit-line-clamp-009-ref.html
webkit-line-clamp-010-ref.html
webkit-line-clamp-011-ref.html
webkit-line-clamp-012-ref.html
webkit-line-clamp-013-ref.html
webkit-line-clamp-014-ref.html
webkit-line-clamp-015-ref.html
webkit-line-clamp-016-ref.html
webkit-line-clamp-017-ref.html
webkit-line-clamp-018-ref.html
webkit-line-clamp-019-ref.html
webkit-line-clamp-020-ref.html
webkit-line-clamp-021-ref.html
webkit-line-clamp-022-ref.html
webkit-line-clamp-023-ref.html
webkit-line-clamp-024-ref.html
webkit-line-clamp-025-ref.html
webkit-line-clamp-026-ref.html
webkit-line-clamp-027-ref.html
webkit-line-clamp-029-ref.html
webkit-line-clamp-030-ref.html
webkit-line-clamp-031-ref.html
webkit-line-clamp-032-ref.html
webkit-line-clamp-035-ref.html
webkit-line-clamp-036-ref.html
webkit-line-clamp-037-ref.html
webkit-line-clamp-038-ref.html
webkit-line-clamp-039-ref.html
webkit-line-clamp-040-ref.html
webkit-line-clamp-block-in-inline-001-ref.html
webkit-line-clamp-dynamic-001-ref.html
webkit-line-clamp-with-line-height-ref.html