Re: [csswg-drafts] [css-overflow-3] max-lines not forwards compatible with fragmented overflow

> One way to solve this would be backporting continue: auto | discard so that max-lines will not discard by default, only when continue: discard is specified. Thus an implementation of max-lines + continue: fragments will not discard the content (as the author did not intend).

I support this. 

> If we do this, we'd extend line-clamp to also set continue: discard so that it preserves its current behavior.

This too. To make it easy to set everything in one go, we should also extend the syntax of line-clamp to `none | <integer> <'block-overflow'>?`

> However, in this case, it would end up overflowing the box, which is maybe not a great improvement.

No, we should just say that max-lines only applies to fragmentainers. Making it apply to non fragmentainers (by limiting the height or something) looks very much like a footgun to me. Plus it means we'd have to implement something totally different for that case.

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

Received on Monday, 2 July 2018 11:23:52 UTC