You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: css-overflow-3/Overview.bs
+11-11
Original file line number
Diff line number
Diff line change
@@ -873,17 +873,6 @@ Indicating Block-Axis Overflow: the 'block-ellipsis' property</h3>
873
873
The [=block overflow ellipsis=] must not be included
874
874
in either the ''::first-letter'' nor the ''::first-line'' pseudo-elements.
875
875
876
-
If there is no next <a>fragmentation container</a>
877
-
and thus the remainder of the content after the break would be discarded,
878
-
then the UA may instead visually replace the contents of the line,
879
-
as it does for 'text-overflow'.
880
-
881
-
Note: Allowing the UA to visually replace the content of the line as with 'text-overflow'
882
-
is allowed as an implementation convenience,
883
-
to avoid blocking the whole feature on a comparatively small detail.
884
-
However, that behavior is less desirable,
885
-
and may be removed in later levels of this specification.
886
-
887
876
If there is a subsequent <a>fragmentation container</a> in the [=fragmentation context=]
888
877
that would receive subsequent content,
889
878
then the content displaced by the <a>block overflow ellipsis</a>
@@ -1023,6 +1012,17 @@ Legacy compatibility</h4>
1023
1012
and the computed value of the '-webkit-box-orient' property on the parent
1024
1013
is ''-webkit-box-orient/vertical''.
1025
1014
1015
+
Note: Implementations of the legacy '-webkit-line-clamp' property
1016
+
have not behaved identically to what is specified here.
1017
+
The historical behavior is quirky and less robust,
1018
+
as documented for example in <a href="https://medium.com/mofed/css-line-clamp-the-good-the-bad-and-the-straight-up-broken-865413f16e5">this blog post</a>.
1019
+
The current design learns from the mistakes of that early experiment,
1020
+
and is intended to be sufficiently compatible with existing content
1021
+
that implementations can eventually be changed to follow to the specified behavior.
1022
+
If further adjustments are found to be necessary,
1023
+
they will be incorporated to this specification.
1024
+
In the meanwhile, authors should be aware that there may be discrepancies.
1025
+
1026
1026
<h3 id="max-lines">
1027
1027
Forcing a Break After a Set Number of Lines: the 'max-lines' property</h3>
0 commit comments