- From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
- Date: Tue, 15 Aug 2017 20:22:55 +0000
- To: public-css-archive@w3.org
So I've spent some time thinking about this in the past. I think there are two modes that people realistically want when clamping, which end up being quite distinct: 1. I want to display N lines of content, however large that ends up being. This should affect the layout size of the element, so it'll tightly fit the content. 2. I want to lay out an element normally, but if this would overflow, instead clamp to the largest number of lines possible without overflowing. (And size the element as if it were overflowing; that is, make it as large as possible, even if that leaves some empty space in the content area.) The former is easy and simple, and basically what -webkit-line-clamp does. We should be able to port over its functionality into a spec for this pretty simply, I think. The second is closer to what people often *actually* want, and approximate by just guessing at the number of lines that'll display in the space they have. Maybe it's a type of `overflow-style` value? I dunno. -- GitHub Notification of comment by tabatkins Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/390#issuecomment-322576393 using your GitHub account
Received on Tuesday, 15 August 2017 20:22:56 UTC