Closed Bug 1520120 Opened 7 years ago Closed 7 years ago

linebreak inserted for element with lang="de" when not necessary (potential addition of hyphen taken into account?)

Categories

(Core :: Layout: Text and Fonts, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1507661

People

(Reporter: aryx, Unassigned)

Details

Attachments

(1 file)

Attached file test case.html

Firefox Nightly 66.0a1 20190114104248, also reproduces with 64

Today a user reported the issue from bug 1507661 on IRC and provided the attached test case. It also has a different issue: The word "N-Logo" gets wrapped for lang="de" even if it fits into one line if lang="en" is used. Is the additional hyphen taken into account when the calculation if the text will fit is done?

Current situation:

lang="en":
N-Logo

lang="de":
N--
Logo
in the source as "N-Logo"

I'm not sure I understand the issue being described here (besides the incorrect rendering of an extra hyphen). I think the problem is simply that hyphens:auto with lang=de is incorrectly introducing a hyphenation opportunity after the existing explicit hyphen, and so the line wraps there because "N--" fits on the remaining space of the first line.

So afaics, this is just a further example of the same issue as bug 1507661.

Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: