haikuwebkit/LayoutTests/platform/ios/css1/box_properties
Alan Bujtas 7780755aff Source/WebCore:
[LFC][IFC] Unexpected content wrap when the containing block width is fixed
https://bugs.webkit.org/show_bug.cgi?id=227746

Reviewed by Antti Koivisto.

Test: fast/inline/inline-content-should-fit-the-line.html

While we resolved the relative Length value, the float -> LayoutUnit conversion implicitly floors the return value.
This flooring causes unexpected content wrap when the type we use for the measured width does not match the precision of the LayoutUnit.

* layout/formattingContexts/inline/InlineContentBreaker.cpp:
(WebCore::Layout::InlineContentBreaker::processInlineContent):

LayoutTests:
[LFC][IFC] Unexpected content wrap when the containing block width is relative
https://bugs.webkit.org/show_bug.cgi?id=227746

Reviewed by Antti Koivisto.

* fast/inline/inline-content-should-fit-the-line-expected.html: Added.
* fast/inline/inline-content-should-fit-the-line.html: Added.


Canonical link: https://commits.webkit.org/239483@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@279678 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-07-07 22:07:57 +00:00
..
acid_test-expected.txt
border-expected.txt
border_bottom-expected.txt [SLL] Generate runs for preserved new lines 2020-01-05 19:23:13 +00:00
border_bottom_inline-expected.txt
border_bottom_width-expected.txt
border_bottom_width_inline-expected.txt
border_color-expected.txt
border_color_inline-expected.txt
border_inline-expected.txt
border_left-expected.txt
border_left_inline-expected.txt
border_left_width-expected.txt
border_left_width_inline-expected.txt
border_right-expected.txt
border_right_inline-expected.txt
border_right_width-expected.txt
border_right_width_inline-expected.txt
border_style-expected.txt
border_style_inline-expected.txt
border_top-expected.txt
border_top_inline-expected.txt
border_top_width-expected.txt
border_top_width_inline-expected.txt
border_width-expected.txt
border_width_inline-expected.txt
clear-expected.txt
clear_float-expected.txt
float-expected.txt
float_elements_in_series-expected.txt
float_margin-expected.txt
float_on_text_elements-expected.txt
height-expected.txt
margin-expected.txt
margin_bottom-expected.txt
margin_bottom_inline-expected.txt
margin_inline-expected.txt
margin_left-expected.txt
margin_left_inline-expected.txt
margin_right-expected.txt
margin_right_inline-expected.txt
margin_top-expected.txt [SLL] Generate runs for preserved new lines 2020-01-05 19:23:13 +00:00
margin_top_inline-expected.txt
padding-expected.txt
padding_bottom-expected.txt
padding_bottom_inline-expected.txt
padding_inline-expected.txt
padding_left-expected.txt
padding_left_inline-expected.txt
padding_right-expected.txt
padding_right_inline-expected.txt
padding_top-expected.txt
padding_top_inline-expected.txt
width-expected.txt