Re: [csswg-drafts] [css-overflow] Consider support for multiple-line ellipsis

I think ideally, it would make more sense to spec this feature as equivalent to max-height, except with the ability to specify that height in terms of number of lines.

This would require using `overflow: hidden` in conjunction with the property in order to actually hide the lines, but that would then give the author the control to make those lines visible with `overflow: scroll` or, in the future, to paginate them to another fragmentainer.

So, basically, I'm agreeing with Florian about the direction to go in, but to solve the cases that `-webkit-line-clamp` currently solves, we don't need the additional fragmentation support, just the `max-lines` property itself. If there's no strong compat restriction that will require us to exactly duplicate `-webkit-line-clamp`, then I think this is a better direction to go in: the behavior is simple to define in terms of existing CSS models, and it is extensible to behaviors we want to allow in the future, like stying the first N lines specially.


-- 
GitHub Notification of comment by fantasai
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/390#issuecomment-323207424 using your GitHub account

Received on Thursday, 17 August 2017 22:06:22 UTC