Re: [csswg-drafts] [css-ui-4] Ellipsizing of text in middle of string (#3937)

Thank you for picking up my proposal, Harrison!

For reference, my proposal actually included two ideas. The first one was to allow cropping in the middle of the element's content and the second, related one to preserve some part of the contents on smaller element widths.

To avoid discussing two features at the same time, let's focus solely on middle-cropping here.

[My proposal](https://www.w3.org/wiki/Text-overflow_middle_cropping) back then was to reuse `text-overflow` for this purpose and simply add a third value to it specifying the cropping in the center of the contents. @MatsPalmgren had [another proposal in the related enhancement request for Gecko](https://bugzilla.mozilla.org/show_bug.cgi?id=740910#c3), which let you move the end ellipsis. Both proposals turned `text-overflow` into a shorthand and introduced different longhands allowing to control the different partial values separately.

Issues with the proposals, which need to be solved:
1. Normally, you will only want to crop *either* at the beginning and/or end *or* in the middle, but not both.
2. For middle-cropping you will only want to have ellipsizing but not clipping, so `clip` should not be allowed for it.

Sebastian

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

Received on Saturday, 18 May 2019 20:57:04 UTC