Skip to content

Commit 863a036

Browse files
committed
[css-overflow] Block-ellipsis and float clearance
See #14047 TL;DR: don't shift lines down
1 parent 7a7e17b commit 863a036

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

css-overflow-4/Overview.bs

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -990,6 +990,18 @@ Indicating Block-Axis Overflow: the 'block-ellipsis' property</h3>
990990
line-clamp-auto-041.html
991991
</wpt>
992992

993+
The user agent must not attempt to make room for the ellipsis
994+
by other means that displacing content from the end of the line;
995+
notably, user agent must not shift down
996+
the line box where the ellipsis is to be placed
997+
in order to clear a [=float=]
998+
or to be positioned in a wider subsequent [=fragmentation container=]
999+
even if that would increase the available width.
1000+
1001+
<wpt>
1002+
block-ellipsis-040.html
1003+
</wpt>
1004+
9931005
* The anonymous inline of [=block overflow ellipsis=] is placed
9941006
after any remaining content,
9951007
after [[css-text-4#white-space-phase-2]],
@@ -1031,6 +1043,19 @@ Indicating Block-Axis Overflow: the 'block-ellipsis' property</h3>
10311043
block-ellipsis-034.html
10321044
</wpt>
10331045

1046+
* Normally, if a line box that would have been placed next to a [=float=]
1047+
is too short to contain any content,
1048+
it is shifted downward until either some content fits or there are no more floats present.
1049+
(See [[CSS21#floats]]).
1050+
However, if, after displacing content to make room for the ellipsis
1051+
and inserting the ellipsis,
1052+
the content would be short enough for the line box to fit next to the float,
1053+
the user agent must not shift the line box down,
1054+
and must keep it at its original position.
1055+
1056+
<wpt>
1057+
block-ellipsis-041.html
1058+
</wpt>
10341059

10351060
Text <a href="https://www.w3.org/TR/css-text-3/#justification">alignment and justification</a>
10361061
occurs after placement,

0 commit comments

Comments
 (0)