W3C home > Mailing lists > Public > public-css-archive@w3.org > July 2018

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

From: Florian Rivoal via GitHub <sysbot+gh@w3.org>
Date: Mon, 02 Jul 2018 11:23:44 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-401773252-1530530623-sysbot+gh@w3.org>
> 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

This archive was generated by hypermail 2.3.1 : Monday, 2 July 2018 11:23:52 UTC