New issue
Advanced search Search tips

Issue 671129 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Dec 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: Android , Mac
Pri: 2
Type: Bug



Sign in to add a comment

Hyphens inserted by CSS hyphenation create gaps at end of lines in justified text

Reported by m...@thomasbachem.com, Dec 5 2016

Issue description

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

Steps to reproduce the problem:
See attached test case.

What is the expected behavior?
Both texts should be hyphenated "hyphenational-gorithm" and justified.

What went wrong?
Chrome shows a gap after the hyphen at the end of the line, Safari and Firefox work as intended.

Did this work before? N/A 

Does this work in other browsers? Yes

Chrome version: 55.0.2883.35  Channel: n/a
OS Version: OS X 10.11.2
Flash Version: Shockwave Flash 23.0 r0

Might be related to issue 639223.
 
hyphenation-gap.png
43.2 KB View Download
hyphenation-gap.html
522 bytes View Download
Labels: M-55

Comment 2 by e...@chromium.org, Dec 5 2016

Owner: kojii@chromium.org
Status: Assigned (was: Unconfirmed)

Comment 4 by kojii@chromium.org, Dec 10 2016

Labels: Merge-Request-56 OS-Android
Status: Fixed (was: Assigned)
Fixed in today's Canary, it'd be greatly appreciated if you could check your pages.

Comment 5 by dimu@chromium.org, Dec 10 2016

Labels: -Merge-Request-56 Merge-Approved-56 Hotlist-Merge-Approved
Your change meets the bar and is auto-approved for M56 (branch: 2924)
Project Member

Comment 6 by bugdroid1@chromium.org, Dec 10 2016

Labels: -merge-approved-56 merge-merged-2924
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/36abedc360f1cf489839caf254f7f0491bbd6a93

commit 36abedc360f1cf489839caf254f7f0491bbd6a93
Author: Koji Ishii <kojii@chromium.org>
Date: Sat Dec 10 06:39:33 2016

Merge 2924: Fix not to double count the widths of hyphens

The widths of hyphens are added to BidiRun in LayoutBlockFlow, and
should not be included in WordMeasurement.

BUG= 671129 

Review-Url: https://codereview.chromium.org/2548333004
Cr-Commit-Position: refs/heads/master@{#436886}
(cherry picked from commit 1b73086fba57f587b632d5c60c3e912317fa2613)

Review-Url: https://codereview.chromium.org/2564263002 .
Cr-Commit-Position: refs/branch-heads/2924@{#445}
Cr-Branched-From: 3a87aecc31cd1ffe751dd72c04e5a96a1fc8108a-refs/heads/master@{#433059}

[modify] https://crrev.com/36abedc360f1cf489839caf254f7f0491bbd6a93/third_party/WebKit/LayoutTests/TestExpectations
[add] https://crrev.com/36abedc360f1cf489839caf254f7f0491bbd6a93/third_party/WebKit/LayoutTests/fast/text/hyphens/hyphens-align-expected.html
[add] https://crrev.com/36abedc360f1cf489839caf254f7f0491bbd6a93/third_party/WebKit/LayoutTests/fast/text/hyphens/hyphens-align.html
[modify] https://crrev.com/36abedc360f1cf489839caf254f7f0491bbd6a93/third_party/WebKit/Source/core/layout/line/BreakingContextInlineHeaders.h

Comment 7 by kojii@chromium.org, Dec 12 2016

Labels: Merge-Request-55
As per the process. The fix is quite safe.

Comment 8 by dimu@chromium.org, Dec 12 2016

Labels: -Merge-Request-55 Merge-Review-55 Hotlist-Merge-Review
[Automated comment] Request affecting a post-stable build (M55), manual review required.
Labels: TE-Verified-56.0.2924.28 TE-Verified-M56
Verified the fix on Mac 10.12.1 using Chrome Beta #56.0.2924.28 as per the comment #0.

Observed that both texts are hyphenated "hyphenational-gorithm" and justified as expected.

Hence, the fix is working as expected.

Attaching the screenshot for reference.

Adding the verified labels.

Thanks...!!
671129.png
105 KB View Download
Labels: -Merge-Review-55 Merge-Rejected-55
While the fix is simple, this is a Pri-2 and M55 is already deployed to stable across all platforms, so we should wait for M56 on this.  Rejecting merge, ping me if you have concerns.

Sign in to add a comment