haikuwebkit/LayoutTests/platform/mac/css1
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
..
basic
box_properties Source/WebCore: 2021-07-07 22:07:57 +00:00
cascade
classification
color_and_background Source/WebCore: 2021-07-07 22:07:57 +00:00
conformance
font_properties
formatting_model
pseudo
text_properties [LFC][Integration] Enable inline box support (RenderInline) 2021-04-06 13:55:35 +00:00
units