[css-text] Support for break-spaces with trailing ideographic spaces
This CL add the logic, for both Legacy and LayoutNG, for handling trailing ideographic spaces when the white-space CSS property is set to 'break-spaces' value. The CSS Text specification states [1] that we must prevent handing or collapsing the advance width of any space, including other space separator like ideographic spaces, hence the overflowing spaces must wrap to the next line. However, the spec also states in the description of the 'break-spaces' value [2] that breaking opportunities exists 'after' any space; hence, breaking before the first ideographic space of the sequence is not allowed, so it may overflow in that case. [1] https://drafts.csswg.org/css-text-3/#white-space-phase-2 [2] https://drafts.csswg.org/css-text-3/#valdef-white-space-break-spaces Bug: 1155633 Change-Id: Id34f05cb3457516fcb20a4731606425ec943a255 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2584854 Commit-Queue: Javier Fernandez <jfernandez@igalia.com> Reviewed-by:Koji Ishii <kojii@chromium.org> Cr-Commit-Position: refs/heads/master@{#837379}
Showing
Please register or sign in to comment