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

Option 2 solves some cases better than 1 and at the same time introduces behavior that might be unexpected to authors compared to line-clamp (if I read your proposal right).

Applying `max-lines:3` to a block with few nested paragraphs `<div style='max-lines:3'><div><p>[text]` will apply to the inner most root inline context and clamp the number of lines to 3 - that's good. 

On the other hand, if there is text between `<div style='max-lines:3'>[text]<div>[text]<p>[text]`  option 2 suggests we need to generate a total of up to 3 lines for each root inline context. That means we are expected to produce either:
A) multiples of 3 lines 
B) total of three lines that are potentially not related (for ex. one line of each root inline context).

Neither of A or B options seems great, though arguably b is a bit better but much harder to implement since there will be too much sibling related layout data that needs to be passed around.


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

Received on Thursday, 7 September 2017 16:43:10 UTC