Summary CSS line-clamp allows limiting of the contents of a block to a specified number of lines, to a specified height, or to the smaller of the two. Optionally, it also allows inserting an ellipsis or a string into the last line to indicate that content was truncated.
We are also championing this feature for Interop 2027. Specification https://drafts.csswg.org/css-overflow-4/#suppressing-excess Standards Body W3C Platform Coverage All platforms Preference layout.css.line-clamp.enabled DevTools Bug N/A Extensions Bug N/A Use Counter css_line_clamp Standards-Positions Discussion https://github.com/mozilla/standards-positions/issues/984 Other Browsers - WebKit: Available behind the pref CSSLineClampEnabled in Safari Technology Preview 204, Safari 18.2 - Blink: Available behind CSSLineClamp in Chromium 127, Chrome 127 web-platform-tests css/css-overflow/line-clamp/ <https://wpt.fyi/results/css/css-overflow/line-clamp?label=master&label=experimental&aligned&q=%2Fcss%2Fcss-overflow%2Fline-clamp%2F> -- You received this message because you are subscribed to the Google Groups "[email protected]" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/a/mozilla.org/d/msgid/dev-platform/CA%2BJq4zNJuo5WgXON9kPSkitmxkmpymswA%2BbXnTDf2%3DabEpqQOg%40mail.gmail.com.
