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
{{ message }}
Repository navigation
[css-overflow-4] Remove continue from line-clamp #14930
There is no sign of continue in the value syntax, however. I initially thought it was in block-ellipsis, but it’s not there either.
So while the value of continue can affect line-clamp’s behavior, it is not represented by line-clamp. Thus I propose changing the draft to remove continue from the list of things for which line-clamp is a shorthand, and add a note that line-clamp’s behavior depends on continue’s value.
Would this mean that to use line-clamp, authors would need to specify both continue: collapseand (say) line-clamp: 3 if they want line-clamp to apply at all? This would also run into compat issues with -webkit-line-clamp, unless we treat that as a shorthand for continue as well...
I guess there would be an alternative of making continue: collapse the default, and having it do anything with the default value of the other properties. But then we'd need to change max-lines: auto to distinguish between the "do not clamp" behavior, and the "clamp according to max-height" behavior.
An alternative option would be to get rid of continue completely and subsume its value space under max-lines. After all, continue says whether we clamp, and whether that's conditioned by legacy properties (as required by -webkit-line-clamp), whereas max-lines says at which point to clamp.
Activity
andreubotella commentedon Dec 2, 2026
Would this mean that to use
line-clamp, authors would need to specify bothcontinue: collapseand (say)line-clamp: 3if they wantline-clampto apply at all? This would also run into compat issues with-webkit-line-clamp, unless we treat that as a shorthand forcontinueas well...I guess there would be an alternative of making
continue: collapsethe default, and having it do anything with the default value of the other properties. But then we'd need to changemax-lines: autoto distinguish between the "do not clamp" behavior, and the "clamp according tomax-height" behavior.andreubotella commentedon Dec 2, 2026
An alternative option would be to get rid of
continuecompletely and subsume its value space undermax-lines. After all,continuesays whether we clamp, and whether that's conditioned by legacy properties (as required by-webkit-line-clamp), whereasmax-linessays at which point to clamp.