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
|
Deleted:
test.html
892 bytes
|
|
Deleted:
screenshot.png
9.9 KB
|
Comment 1 by eseckler@chromium.org
, Apr 27 2018