Re: [csswg-drafts] [css-text-4] hyphenate-character doesn't accept just a character

> Committed text allowing (MAY) the UA to limit the hyphenation string to a single typographic character unit in [bfb538a](https://github.com/w3c/csswg-drafts/commit/bfb538a8a9bba5b464df192b56ff3a660c511e8e)
> 
> I wanted to check with the WG on a few points, though:
> 
> * Should we limit it to a single character unit or the UA's choice of N character units?

Let the UA just do the right thing here. If the author supplies some ridiculous long string, I don't think I would consider content "broken" that cuts it in one place as opposed to another place. So it's probably okay if browsers differ here.

> * Should this affect the computed value or only the used value?

It's conceivable that an implementation might decide to cut the string at different places depending on the font size and the width of the containing block. This information isn't known at style resolution time, so not affecting computed value would be better.

> * Should it be MAY or MUST?

I'd say MUST, because if the UA doesn't do any cutting at all, it's broken.

> 
> Also, @r12a, do you have an example I can use that's not "\2010"? It's not a very good example for the spec since `hyphenate-character: "\2010"` is essentially a no-op...


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

Received on Friday, 14 September 2018 01:41:11 UTC