Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text truncation #865

Open
stubbornella opened this issue Oct 9, 2024 · 2 comments
Open

Text truncation #865

stubbornella opened this issue Oct 9, 2024 · 2 comments
Labels
focus-area-proposal Focus Area Proposal

Comments

@stubbornella
Copy link

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 unprefixing line-clamp. It does not include deprecating prefixed line-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.

@gsnedders
Copy link
Member

A duplicate of #725?

@meyerweb
Copy link

A duplicate of #725?

This is a superset of 725, from what I can see.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
focus-area-proposal Focus Area Proposal
Projects
Status: No status
Development

No branches or pull requests

3 participants