Re: [w3c/manifest] We should add a character limit to `name` and `short_name` (Issue #1070)

You probably want to provide some sort of author guidance. The short name should, presumably, be _short_, but super-specific limits run up against variation in language encoding and UX design. Elision should be on grapheme boundaries and, ideally, word boundaries (falling back to grapheme boundaries).

> Do you know if there are specifications around doing physical truncations-plus-ellipsis based on pixel width available?

CSS does this in text-overflow and line-clamp (we're currently having a spirited discussion of the best way to do line-clamp, which is probably closer to what is wanted, since you want to truncate logically). Those might be places to look for descriptions.

> If not, we can easily put non-normative text that a UA may limit / elide short_name to pixel width for dialogs, and same for name.

Definitely you want to do something like this.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/manifest/issues/1070#issuecomment-2383666703
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/manifest/issues/1070/2383666703@github.com>

Received on Monday, 30 September 2024 16:31:50 UTC