https://drafts.csswg.org/css-text-3/#white-space-phase-2 talks about sequences of collapsible white space at the end of a white-space:pre-wrap element hanging by linking to https://drafts.csswg.org/css-text-3/#hang, but that section only talks about punctuation. Maybe it needs to be adjusted to make sense for white space too.