github web-platform-tests/wpt merge_pr_48040

latest releases: merge_pr_49470, epochs/three_hourly/2024-12-03_06H, epochs/six_hourly/2024-12-03_06H...
12 months ago

Allow breaking line after space with white-space: break-spaces

white-space: break-spaces should allow a soft wrap opportunity after
every preserved white space. Then, to avoid breaking before the first
white space, TextRunSegment::shape_text() has some logic to separate
it from the following spaces and put it with the preceding text instead.

The problem was that, when combined with word-break: keep-all, we were
then only checking whether there were more white spaces afterwards,
ignoring the soft wrap opportunity after the first one.

Also removing a duplicated can_break_anywhere variable.

Signed-off-by: Oriol Brufau obrufau@igalia.com

Don't miss a new wpt release

NewReleases is sending notifications on new releases.