Skip to content

Commit 78cb54e

Browse files
committed
[css-overflow-4] define interaction of line-clamp longhands with balance
See #10827
1 parent 7e0ee1a commit 78cb54e

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

css-overflow-4/Overview.bs

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -864,6 +864,11 @@ Indicating Block-Axis Overflow: the 'block-ellipsis' property</h3>
864864
block-ellipsis-025.html
865865
</wpt>
866866

867+
Displacing content to make room for the [=block overflow ellipsis=]
868+
can cause the [=logical height=] of line box where it is inserted to shrink.
869+
This must not cause a reevaluation of the effects of the 'continue' property
870+
and must not change which line box is the last one before the truncated content.
871+
867872
* The anonymous inline of [=block overflow ellipsis=] is placed
868873
after any remaining content,
869874
after [[css-text-4#white-space-phase-2]],
@@ -1402,7 +1407,30 @@ Handling of Excess Content: the 'continue' property</h3>
14021407

14031408
</div>
14041409

1405-
Additionaliy,
1410+
When 'text-wrap-style' is set to ''text-wrap-style/balance''
1411+
on a block container whose 'continue' has a value other than ''continue/auto'',
1412+
or which participates in the [=block formatting context=]
1413+
established by an element whose 'continue' has a value other than ''continue/auto'',
1414+
layout must first be computed as if 'text-wrap-style' were set to 'text-wrap-style/stable'.
1415+
Then, after any excess content has been truncated
1416+
and after any necessary [=block overflow ellipsis=] has been inserted,
1417+
the remaining content must be rebalanced,
1418+
as per ''text-wrap-style: balance''.
1419+
If this rebalancing would cause the [=logical height=] of the content to grow,
1420+
the cutoff point ([=clamp point=] or [=fragmentation break=]) must be reevaluated,
1421+
and any necessary [=block overflow ellipsis=] reapplied accordingly.
1422+
Whether to rebalance again after that is up to the user agent,
1423+
but if it does so,
1424+
it must always ensure that the constraints
1425+
about the placement of the cutoff point are adhered to,
1426+
no matter how many iterations it choose to make.
1427+
1428+
For other values of 'text-wrap-style',
1429+
whether to apply them before the effects of the 'continue' property,
1430+
after, or both,
1431+
is undefined in this level.
1432+
1433+
Additionally,
14061434
for compatibility (see [[#webkit-line-clamp]]),
14071435
when the [=computed value=] of the 'continue' property is ''collapse'', ''continue/-webkit-legacy'', or ''discard''
14081436
and the [=computed value=] of the '-webkit-box-orient' property is ''vertical'':

0 commit comments

Comments
 (0)