New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 837846 link

Starred by 2 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Text justification breaks with very large window width

Project Member Reported by eseckler@chromium.org, Apr 27 2018

Issue description

Text justification breaks with large window widths and paragraphs because of an overflow in InlineBoxBitfields::SetExpansion() [1]. See attached screenshot - the text on the second line should be justified but is not.

Repro:
1) download test.html (attached) to /tmp/test.html
2) execute: chrome --headless --window-size=4500x100 --screenshot /tmp/test.html 
3) open screenshot.png

A true fix would require growing the expansion field. Maybe a good-enough workaround would be to clamp the expansion to the maximum value of the field to prevent overflowing.

[1] https://cs.chromium.org/chromium/src/third_party/blink/renderer/core/layout/line/inline_box.h?gsn=SetExpansion&l=469
 
test.html
892 bytes View Download
screenshot.png
9.9 KB View Download
Cc: chrishtr@chromium.org
+chrishtr, Can you point us to the right person to chat with about this? Thanks! :)
Cc: e...@chromium.org
Emil would be a good person.

Sign in to add a comment