Closed Bug 1684579 Opened 5 years ago Closed 5 years ago

[wpt-sync] Sync PR 27021 - Hyphenate the last word if only one word in the line

Categories

(Core :: Layout: Text and Fonts, task, P4)

task

Tracking

()

RESOLVED FIXED
86 Branch
Tracking Status
firefox86 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Attachments

(1 file)

Sync web-platform-tests PR 27021 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/27021
Details from upstream follow.

b'Koji Ishii <kojii@chromium.org>' wrote:

Hyphenate the last word if only one word in the line

Blink (legacy and NG) and WebKit does not hyphenate the last
word in a paragraph, except when it is a single-word paragraph.
However, when the containing block is narrow, sometimes
authors want a long last word to be hyphenated.

This patch changtes the heursitic to allow hyphenation if the
line is a single-word line.

CSS Text 4 has a property to control this behavior, but no
browsers have implemented it yet.

Bug: 1022415
Change-Id: Ibd8d8b132e540a142f18efc09a37fed2b207bfdf

Reviewed-on: https://chromium-review.googlesource.com/2599567
WPT-Export-Revision: b7a7954ab7913f3c5ed304695e7d3d1350764cab

Component: web-platform-tests → Layout: Text and Fonts
Product: Testing → Core
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]

CI Results

Ran 14 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 1 tests

Status Summary

Firefox

PASS: 1

Chrome

FAIL: 1

Safari

FAIL: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/93c8dc72f25a [wpt PR 27021] - Hyphenate the last word if only one word in the line, a=testonly

Automatic update from web-platform-tests
Hyphenate the last word if only one word in the line

Blink (legacy and NG) and WebKit does not hyphenate the last
word in a paragraph, except when it is a single-word paragraph.
However, when the containing block is narrow, sometimes
authors want a long last word to be hyphenated.

This patch changtes the heursitic to allow hyphenation if the
line is a single-word line.

CSS Text 4 has a property to control this behavior, but no
browsers have implemented it yet.

Bug: 1022415
Change-Id: Ibd8d8b132e540a142f18efc09a37fed2b207bfdf
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2599567
Commit-Queue: Kent Tamura <tkent@chromium.org>
Auto-Submit: Koji Ishii <kojii@chromium.org>
Reviewed-by: Kent Tamura <tkent@chromium.org>
Cr-Commit-Position: refs/heads/master@{#842345}

--

wpt-commits: f65538192754284c3e0d93ef39e2c403650d3b40
wpt-pr: 27021

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b9df0e0555a1 [wpt PR 27021] - Hyphenate the last word if only one word in the line, a=testonly
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 86 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: