Companies like AirBnb that include user reviews or other quoted text need finer grained control over truncation so they can ensure that the final quotes are placed in the right spot, regardless of the length of the text or the size of the page. This proposal includes 4 APIs: max-lines, block-ellipsis, continue, and unprefixing line-clamp. It does not include deprecating prefixed line-clamp.
Description
Companies like AirBnb that include user reviews or other quoted text need finer grained control over truncation so they can ensure that the final quotes are placed in the right spot, regardless of the length of the text or the size of the page. This proposal includes 4 APIs:
max-lines
,block-ellipsis
,continue
, and unprefixingline-clamp
. It does not include deprecating prefixedline-clamp
.Specification
https://drafts.csswg.org/css-overflow-4/#propdef-line-clamp
Additional Signals
Airbnb uses JavaScript to achieve this today. They want something declarative and faster.