Re: [csswg-drafts] [css-text-3] line breaks and ideographic space

@macnmm 
Either of the following two comments should become new issues if you want to continue discussing them. I'm responding here for now, but if you think the case isn't closed, I'd appreciate if you could file them separately

---
I don't think we define U+2003 as hanging. Should we, for reasons other than CJK? currently, we only hang U+0020 and U+3000. Should that be generalized to all sorts of spaces? Many-but-not-all sorts of spaces?

---

As for having a switch, we effectively have one: `white-space: break-spaces` disallows spaces from hanging / being removed, and requires them to wrap instead. It does not allow (by itself) wrapping before U+3000, since that still has the UAX14 line breaking class of BA, but if there's a series of U+3000, the subsequent ones will wrap, and if the first one doesn't fit, it will bring the preceding character together with it to the next line.

`white-space: break-spaces` isn't a switch that only does that, though. It also stops sequences of U+0020 from collapsing, and preserves line breaks from the source, just like `white-space: pre-wrap` would.

Whether that's acceptable or not, I am not sure, it depends on the use case. Which brings me to: what is the need that drives wrapping U+3000 in the InDesign roman paragraph composer? Is that because of a particular need, or does it just falls out of not handling CJK characters specially, but isn't particularly need driven?

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

Received on Wednesday, 3 October 2018 23:44:27 UTC