Skip to content

Commit 4d1d5ce

Browse files
committed
[css-overflow-3] Remove allowance for worse behavior
Instead, add note that legacy -webkit- implementations may be wacky. See w3c#2905
1 parent fb52823 commit 4d1d5ce

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

css-overflow-3/Overview.bs

+11-11
Original file line numberDiff line numberDiff line change
@@ -873,17 +873,6 @@ Indicating Block-Axis Overflow: the 'block-ellipsis' property</h3>
873873
The [=block overflow ellipsis=] must not be included
874874
in either the ''::first-letter'' nor the ''::first-line'' pseudo-elements.
875875

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-
887876
If there is a subsequent <a>fragmentation container</a> in the [=fragmentation context=]
888877
that would receive subsequent content,
889878
then the content displaced by the <a>block overflow ellipsis</a>
@@ -1023,6 +1012,17 @@ Legacy compatibility</h4>
10231012
and the computed value of the '-webkit-box-orient' property on the parent
10241013
is ''-webkit-box-orient/vertical''.
10251014

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+
10261026
<h3 id="max-lines">
10271027
Forcing a Break After a Set Number of Lines: the 'max-lines' property</h3>
10281028

0 commit comments

Comments
 (0)