Skip to content

added height-based clamping to line-clamp property - #30418

Merged
Elchi3 merged 9 commits into
mdn:mainfrom
dletorey:height-based-clamping
Sep 8, 2026
Merged

added height-based clamping to line-clamp property#30418
Elchi3 merged 9 commits into
mdn:mainfrom
dletorey:height-based-clamping

Conversation

@dletorey

@dletorey dletorey commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Added support for line-clamp property for height-based clamping

Test results and supporting details

  • Tested with this pen in the following browsers:
    • Firefox Nightly 157 (with flag layout.css.line-clamp.enabled) - fails
    • Chrome Canary 155.0.8040.0 (with Experimental Web Platform features enabled) - works
    • Safari Tech Preview 251 - fails
  • More information in this CSSWG Issue

Related issues

@github-actions github-actions Bot added the data:css Compat data for CSS features. https://developer.mozilla.org/docs/Web/CSS label Sep 3, 2026
@github-actions github-actions Bot added the size:m [PR only] 25-100 LoC changed label Sep 3, 2026
@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Tip: Review these changes grouped by change (recommended for most PRs), or grouped by feature (for large PRs).

@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

The lint check found auto-fixable issues. Apply suggested changes (attributed to bcd-linter), or to fix all at once, run npm run lint:fix locally.

See also: Automated lint suggestions on pull requests

Comment thread css/properties/line-clamp.json Outdated
Comment thread css/properties/line-clamp.json Outdated
Comment thread css/properties/line-clamp.json Outdated
dletorey and others added 3 commits September 7, 2026 13:36
Co-authored-by: Florian Scholz <fs@florianscholz.com>
Co-authored-by: Florian Scholz <fs@florianscholz.com>
@dletorey
dletorey requested a review from Elchi3 September 7, 2026 12:47

@Elchi3 Elchi3 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Dave! 👍

@Elchi3
Elchi3 merged commit 0e63a68 into mdn:main Sep 8, 2026
10 checks passed
@mdn-bot mdn-bot mentioned this pull request Sep 8, 2026
@dletorey
dletorey deleted the height-based-clamping branch September 9, 2026 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data:css Compat data for CSS features. https://developer.mozilla.org/docs/Web/CSS size:m [PR only] 25-100 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants