- From: Florian Rivoal via GitHub <sysbot+gh@w3.org>
- Date: Fri, 09 Mar 2018 00:19:46 +0000
- To: public-css-archive@w3.org
We just drafted [`block-overflow`](https://drafts.csswg.org/css-overflow-3/#block-ellipsis) in answer to #390 to insert an ellipsis at the end of a truncated paragraph (unline text-overflow which inserts an ellipsis at the end of an overflowing line). This one does interact with the line-breaking controls from [css-text](https://drafts.csswg.org/css-text-3/) (`overflow-wrap`, `word-break`, `line-break`…), so you get pretty fine grained control over what gets elided, as requested here. However for `text-overflow`, it is a bit more tricky. You cannot use the line breaking controls for that, because if the line breaks then it doesn't overflow, and there's no ellipsis. I think we could add some additional controls in css-ui-4 for the `text-overflow` property to enable controlling what/how much gets elided, but it would probably have to be additional values to the `text-overflow` property itself (e.g. `text-overflow: ellipsis break-word` vs `text-overflow: ellipsis no-break`), or a separate property (e.g. `text-overflow-opportunity: anywhere | [hyphens || spaces || punctuation]`). -- GitHub Notification of comment by frivoal Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1574#issuecomment-371670793 using your GitHub account
Received on Friday, 9 March 2018 00:19:55 UTC