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

Okay, let me be more precise about the options as I see them, then:

1. Each root inline formatting context descendant of the block applies the max-lines separately.

2. The max-lines count is maintained across each root inline formatting context descendant of the block, "cutting it off" when the total number of lines hits the max.

3. The max-lines count only applies to the first root inline formatting context descendant of the block. Any additional ones act as normal, not clamping at all.

4. Same as (3), but any additional root inline formatting contexts act lay out as if they're empty (like `max-lines: 0` was applied to them).

(1) is the current behavior of -webkit-line-clamp.  (2) is perhaps closer to what authors would expect; the element sizes to accommodate exactly N lines of text total. (3) and (4) are simpler in concept, if we think that having more text in the element is a minority use-case we don't need to worry about.

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

Received on Monday, 21 August 2017 23:15:15 UTC