Skip to content

Commit b1c7c82

Browse files
[css-overflow] Enable clamping by line and height at the same time (w3c#12772)
See w3c#12041 Co-authored-by: Andreu Botella <andreu@andreubotella.com>
1 parent 97441f7 commit b1c7c82

1 file changed

Lines changed: 11 additions & 7 deletions

File tree

css-overflow-4/Overview.bs

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -973,14 +973,14 @@ Forcing a Break After a Set Number of Lines: the 'max-lines' property</h3>
973973
If fewer than <var>N</var> line boxes exist,
974974
then 'max-lines' introduces no <a>region break</a>.
975975
- If the box is a [=line-clamp container=],
976-
its [=clamp point=] is set
976+
its [=line-based clamp point=] is set
977977
to the first possible clamp point after
978978
its <var>N</var>th
979979
descendant <a>in-flow</a> <a>line box</a>.
980980
If fewer than <var>N</var> line boxes exist,
981981
or if there are no possible clamp points
982982
after the <var>N</var>th descendant <a>in-flow</a> <a>line box</a>,
983-
then that line-clamp container has no clamp point.
983+
then that line-clamp container has no [=line-based clamp point=].
984984

985985

986986
Only line boxes in the same <a>block formatting context</a>
@@ -1196,17 +1196,21 @@ Fragmentation of Overflow: the 'continue' property</h3>
11961196
- A point between two [=in-flow=] [=block-level=] sibling boxes
11971197
in the line-clamp container's [=block formatting context=].
11981198

1199-
If the [=line-clamp container=]'s [=block formatting context root=]
1200-
has a [=computed value=] of 'max-lines' other than ''max-lines/none'',
1201-
then that property will determine the [=clamp point=].
1202-
Otherwise, the clamp point will be set to the last possible clamp point
1199+
The <dfn>auto clamp point</dfn> will be set to the last possible clamp point
12031200
such that, for it and all previous possible clamp points,
12041201
the line-clamp container's [=automatic block size=]
12051202
(as determined below)
12061203
is not greater than the [=block size=] the box would have
12071204
if its automatic block size were infinite.
12081205
If the [=block size=] would be infinite,
1209-
then there is no clamp point.
1206+
then there is no [=auto clamp point=].
1207+
Additionally,
1208+
when the [=line-clamp container=]'s [=block formatting context root=]
1209+
has a [=computed value=] of 'max-lines' other than ''max-lines/none'',
1210+
then that property determines the <dfn>line-based clamp point</dfn>.
1211+
The actual [=clamp point=] used is
1212+
either the [=auto clamp point=] or the [=line-based clamp point=],
1213+
choosing the earlier when both exist.
12101214

12111215
Within a [=line-clamp container=],
12121216
the following boxes and line boxes become [=invisible boxes=]:

0 commit comments

Comments
 (0)