[css-text-3] Define break at space to remove a space explicitly · Issue #4308 · w3c/csswg-drafts (original) (raw)

We currently assume that the rules about trimming white space at the end of a line takes care of disappearing a space at which we break the text.

However, this isn't quite the case when there's bidi, see web-platform-tests/wpt#5461

We should define that for collapsible spaces, if the line-break opportunity taken is provided by that space, it is removed.

This is what makes sense (otherwise you'd end up with double spaces frequently in bidirectional text), and is also what seems to have been implemented.