github web-platform-tests/wpt merge_pr_48193

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

Clear self.pending_whitespace.max_content in forced_line_break()

If we encountered a preserved line break after some whitespace, we were
including the space in the max-content size of the following line.

So just like line_break_opportunity() was already clearing
self.pending_whitespace.min_content, forced_line_break() needs to
clear self.pending_whitespace.max_content too.

Also some cosmetic refactoring.

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

Don't miss a new wpt release

NewReleases is sending notifications on new releases.