[Webkit-unassigned] [Bug 259687] New: [Legacy Line Layout] Single overflowing trailing whitespace prematurely breaks line
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Aug 1 09:49:33 PDT 2023
https://bugs.webkit.org/show_bug.cgi?id=259687
Bug ID: 259687
Summary: [Legacy Line Layout] Single overflowing trailing
whitespace prematurely breaks line
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Layout and Rendering
Assignee: webkit-unassigned at lists.webkit.org
Reporter: david_choi5 at apple.com
CC: bfulgham at webkit.org, simon.fraser at apple.com,
zalan at apple.com
In legacy line layout, whenever a single trailing space/newline character causes the textual content to exceed the available width of a line box, it prematurely stops processing any further inline items, and instead places a line break immediately. This does not occur with consecutive trailing whitespace characters.
This leads to several problems:
1) Floats get pushed on to the next line even if they would otherwise fit in the original line.
Test case: https://jsfiddle.net/2k9gq45v/2/
2) If the trailing white space happens at the end of all inline content, the line break position does not reach the end of the RenderObject linked list, causing legacy line layout to not interpret this line box as the last line box. This causes incorrect behavior in text-align-last and text-justify.
Test case: https://jsfiddle.net/n6s5p1dr/2/
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230801/672f0a97/attachment.htm>
More information about the webkit-unassigned
mailing list