Re: [csswg-drafts] [css-text] How to handle leading ideographic space sequences ? (#4180)

Yes, I am quite sure that this is what the spec says, and it seems like good behavior to me.

ideographic spaces don't collapse with eachoter, or with spaces. Unlike regular spaces, they being at the beginning of the line doesn't cause them to be discarded, but they do get discarded when they are the end of the line. In the case you are talking about, they are both at the beginning and at the end of the line, because there's nothing else in the line. In that case, yes, it give the same results as step 1 even though they're not collapsible, but that's just true in this special case, not in general.

As for how to implement, how about replacing them with a preserved line feed in that situation?

If that turns out to be too hard, I suppose we could replace step 3 two steps, like:
> 3 A sequence at the end of a line (ignoring any intervening inline box boundaries) of collapsible spaces (U+0020) is removed
> 3.5 A sequence at the end of a line (ignoring any intervening inline box boundaries) of other space separators whose white-space value collapses spaces and intervening collapsible spaces (U+0020) not removed at step 3 must hang.

(that's kind of the same as the first sub bullet of step 4, for collapsible values of white-space in addition non conditional on white-space:pre-wrap. Also, note that we have an open issue on the details of step 4 https://github.com/w3c/csswg-drafts/issues/3440).

That seems more complicated to me, to largely achieve the same results, but it wouldn't leave us with empty lines (and authors could paint a background on these if they wanted).

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

Received on Saturday, 31 August 2019 08:46:19 UTC