diff options
author | Oriol Brufau <obrufau@igalia.com> | 2023-10-20 13:47:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-20 11:47:23 +0000 |
commit | 9af3495d8aed9a7738824b3eed1e834ba77b6a47 (patch) | |
tree | 89c9078dd3f63c8b6b00218105acb5b6f580cab6 /tests/wpt/meta/websockets/Send-binary-arraybuffer.any.js.ini | |
parent | e95de5d858e7f9a49dc3fe9e8818b46c3a3790e0 (diff) | |
download | servo-9af3495d8aed9a7738824b3eed1e834ba77b6a47.tar.gz servo-9af3495d8aed9a7738824b3eed1e834ba77b6a47.zip |
Consider trailing_whitespace_advance when calling place_line_among_floats() (#30586)
After placing a float, FloatBox's layout_into_line_items() was calling
place_line_among_floats() with ifc.current_line.inline_position as the
width of needed by the contents of the line.
The problem is that this amount includes the trailing whitespace advance
and thus it could seem that the in-flow contents wouldn't fit next to
the float.
That's not the case, since collapsible whitespace at the end of the line
is removed, and preserved whitespace hangs.
So this patch subtracts ifc.current_line.trailing_whitespace_advance
when calling place_line_among_floats(), like it was already happening
when computing the available_inline_size.
Fixes #30561
Diffstat (limited to 'tests/wpt/meta/websockets/Send-binary-arraybuffer.any.js.ini')
0 files changed, 0 insertions, 0 deletions