Skip to content

[css-overflow-4] Remove continue from line-clamp #14930

Backlog

Description

@meyerweb

In https://drafts.csswg.org/css-overflow-4/#propdef-line-clamp, the draft says:

The line-clamp property is a shorthand for the max-lines, block-ellipsis, and continue properties.

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.

Activity

  1. added
    topic: line-clamp
    on Dec 2, 2026
  2. andreubotella commented on Dec 2, 2026

    @andreubotella
    Member

    Would this mean that to use line-clamp, authors would need to specify both continue: collapse and (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.

  3. andreubotella commented on Dec 2, 2026

    @andreubotella
    Member

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: line-clamp

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions