[css-overflow-4] Don't clamp by height with line-clamp: <integer>#13532
Merged
[css-overflow-4] Don't clamp by height with line-clamp: <integer>#13532
line-clamp: <integer>#13532Conversation
As per the latest resolution on #12041, `line-clamp: <integer>` cannot clamp by both lines and height due to web compat issues with its prefixed `-webkit-line-clamp` alias. The behavior of clamping by lines and height, whichever comes earlier, is still wanted; but it needs an opt-in syntax that has not been decided yet. Since neither the syntax of this behavior on the `line-clamp` shorthand, nor its mapping into its longhands, are yet clear, this PR disables this behavior –clamping only by the auto clamp point when `max-lines: none`, and only by the line-based clamp point otherwise– while adding an issue marker. This change also moves the definition of "line-based clamp point" to the `max-lines` section.
frivoal
approved these changes
Mar 17, 2026
frivoal
added a commit
to frivoal/wpt
that referenced
this pull request
Mar 17, 2026
Based on the decision in w3c/csswg-drafts#12041, and the PR in w3c/csswg-drafts#13532
frivoal
added a commit
to web-platform-tests/wpt
that referenced
this pull request
Mar 17, 2026
Based on the decision in w3c/csswg-drafts#12041, and the PR in w3c/csswg-drafts#13532
lando-worker Bot
pushed a commit
to mozilla-firefox/firefox
that referenced
this pull request
Mar 30, 2026
Automatic update from web-platform-tests Update tests to match spec Based on the decision in w3c/csswg-drafts#12041, and the PR in w3c/csswg-drafts#13532 -- wpt-commits: f345757222019e096f3a7f7040b7dd15c69684bc wpt-pr: 58542
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
As per the latest resolution on #12041,
line-clamp: <integer>cannot clamp by both lines and height due to web compat issues with its prefixed-webkit-line-clampalias. The behavior of clamping by lines and height, whichever comes earlier, is still wanted; but it needs an opt-in syntax that has not been decided yet.Since neither the syntax of this behavior on the
line-clampshorthand, nor its mapping into its longhands, are yet clear, this PR disables this behavior –clamping only by the auto clamp point whenmax-lines: none, and only by the line-based clamp point otherwise– while adding an issue marker.This change also moves the definition of "line-based clamp point" to the
max-linessection.