- From: Dean Jackson <dino@apple.com>
- Date: Sat, 28 Feb 2015 10:22:52 +1100
- To: Florian Rivoal <florian@rivoal.net>
- Cc: "Tab Atkins Jr." <jackalmage@gmail.com>, www-style list <www-style@w3.org>, Tantek Çelik <tantek@cs.stanford.edu>, Dave Hyatt <hyatt@apple.com>
[Adding Hyatt] > On 28 Feb 2015, at 12:01 am, Florian Rivoal <florian@rivoal.net> wrote: > >> >> On 21 Feb 2015, at 19:31, Dean Jackson <dino@apple.com> wrote: >> >> >>> On 21 Feb 2015, at 1:04 pm, Florian Rivoal <florian@rivoal.net> wrote: >>> >>> >>>> On 21 Feb 2015, at 04:29, Tab Atkins Jr. <jackalmage@gmail.com> wrote: >>>> >>>> On Thu, Feb 19, 2015 at 5:24 PM, Florian Rivoal <florian@rivoal.net> wrote: >>>>> As for browsers already doing it in some cases, do you have a TC or something showing it? I haven't seen it, and I'd like to. >>>> >>>> I don't have a test-case, but I recall Dean talking about it, so >>>> perhaps one of the Apple browsers does it in some situations? >>> >>> I do remember Dean speaking about this, but I think he was saying this is something they would support, not something they already did. Dean, did I misunderstand? >> >> You're right Florian. We don't support this, but would like to. > > I'll explore this in css4-ui, which I plan to start any time now. > >> We do have a proprietary property for going to ellipsis after a given number of lines, but that doesn't control the intra-line placing of the ellipsis. > > Are you referring to -webkit-line-clamp? I'd love to pick your brain (or the relevant brain, if it isn't yours) to better understand what works well and what doesn't with what you currently have, to inform the design of a standard replacement. Yes. Our current implementation doesn't work terribly well in all cases. I think I mentioned some of them at the f2f meeting, but the most common issues are: A. You don't always want to clamp at the end of the line. e.g. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim… That often looks better than this, which appears more like a complete paragraph: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation… B. You want a way to include some generated content after the ellipsis. e.g. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim… *More* (where *More* is in a different style). That way you could listen for a click and expand the block. > We'd probably welcome any standardization of features in this area. > > That's something I'm looking into. See the thread that starts here for some idea of where I'm headed: > https://lists.w3.org/Archives/Public/www-style/2015Jan/0357.html > > Expect some first steps in this direction to land in css-overflow soon. Great. Hopefully Hyatt will have more comments. Dean
Received on Friday, 27 February 2015 23:23:28 UTC