New issue
Advanced search Search tips

Issue 729681 link

Starred by 2 users

Issue metadata

Status: Assigned
Owner:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 3
Type: Bug



Sign in to add a comment

Word-spacing with text-align:justify adds too much space with Inline-blocks.

Reported by david....@gmail.com, Jun 5 2017

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36

Example URL:
https://jsfiddle.net/yvqyrojg/8/

Steps to reproduce the problem:
1. Visit https://jsfiddle.net/yvqyrojg/8/
2. Resize the screen or the preview frame
3. Observe: usually the links are not aligned with the right edge.
4. Try it on firefox, and observe that the links are aligned.

What is the expected behavior?
Justified text including inline-blocks and word-spacing should match the firefox behavior.  In other words, trailing word-spaces at the end of the line should not contribute to the width of the line.

What went wrong?
Apparently trailing word-spaces at the end of the line are incorrectly counted as part of the line and ruin justification.

Note that if the same experiment is run with ordinary words instead of inline-block elements, the problem does not appear on Chrome.

Does it occur on multiple sites: Yes

Is it a problem with a plugin? No 

Did this work before? N/A 

Does this work in other browsers? Yes

Chrome version: 58.0.3029.110  Channel: stable
OS Version: OS X 10.12.5
Flash Version:
 
Components: -Blink Blink>Layout
Status: Untriaged (was: Unconfirmed)

Comment 2 by e...@chromium.org, Jun 5 2017

Labels: -Pri-2 Pri-3
Owner: kojii@chromium.org
Status: Assigned (was: Untriaged)

Comment 3 by e...@chromium.org, May 29 2018

Labels: Fixed-In-LayoutNG

Sign in to add a comment