Skip to content

Commit 1699d89

Browse files
committed
Update to only allow clamping after a line
1 parent c7df9c9 commit 1699d89

File tree

1 file changed

+8
-16
lines changed

1 file changed

+8
-16
lines changed

css-overflow-4/Overview.bs

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -712,8 +712,8 @@ Indicating Block-Axis Overflow: the 'block-ellipsis' property
712712
It only affects line boxes contained directly by the block container itself,
713713
but as it inherits, will have an effect on descendants’ line boxes unless overridden.
714714

715-
This property only affects a line box if there is eiher a [=region break=] or a [=clamp point=]
716-
after it in the [=block formatting context=], and there are no boxes or line boxes in between.
715+
This property only affects a line box if it immediately precedes
716+
eiher a [=region break=] or a [=clamp point=] in the [=block formatting context=].
717717
If the [=clamp point=] is placed at the end of the [=line-clamp container=], then the line will
718718
not be affected.
719719

@@ -1169,26 +1169,18 @@ Fragmentation of Overflow: the 'continue' property
11691169
additionally follows the rules in this section. All line-clamp containers contain a
11701170
clamp point, which is one of the following positions inside it:
11711171

1172-
- The start of the line-clamp container.
1173-
- A point between two [=in-flow=] sibling boxes in the line-clamp
1174-
container's [=block formatting context=].
1175-
- A point between two [=line boxes=] in an in-flow [=inline formatting
1176-
context=] inside the line-clamp container's [=block formatting context=].
1177-
- The end of the line-clamp container.
1178-
1179-
Note: The [=clamp point=] can never be before a parent box's first child, or
1180-
after a parent box's last child, unless that parent box is the line-clamp
1181-
container. Similarly, the clamp point can never be before the first line or
1182-
after the first line of an [=inline formatting context=]. It can also never
1183-
be in [=out-of-flow=] content, or inside an [=independent formatting
1184-
context=].
1172+
- A point immediately after a [=line box=] in the line-clamp container's [=block formatting
1173+
context=].
1174+
- The end of the line-clamp container, if there are any boxes after the last [=inline formatting
1175+
context=] in the line-clamp container's [=block formatting context=].
11851176

11861177
If the [=line-clamp container=]'s [=block formatting context root=] has a [=computed value=] of
11871178
'max-lines' other than ''max-lines/none'', then that property will determine the [=clamp point=].
11881179
Otherwise, the clamp point will be set to the last possible clamp point such that, for it and
11891180
all previous possible clamp points, the line-clamp container's [=automatic block size=] (as
11901181
determined below) is not greater than the [=block size=] the box would have if its automatic
1191-
block size were infinite.
1182+
block size were infinite; or if that is not the case for any clamp points, to the first clamp
1183+
point in the block formatting context.
11921184

11931185
Any boxes in a [=line-clamp container=] that follow its [=clamp point=] in the box tree, as well
11941186
as any [=line boxes=] that follow it inside an [=inline formatting context=], will be invisible

0 commit comments

Comments
 (0)