Closed Bug 1902974 Opened 5 months ago Closed 5 months ago

Spurious lines generated at auto-hyphenation breakpoint when clearing a float

Categories

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

defect

Tracking

()

RESOLVED FIXED
129 Branch
Tracking Status
firefox128 --- fixed
firefox129 --- fixed

People

(Reporter: jfkthame, Assigned: jfkthame)

References

Details

Attachments

(2 files)

Testcase: https://codepen.io/jfkthame/pen/BaeJOmE?editors=1100

Observe how as the blue float grows, in the left-hand example (using hyphens: manual) the text is pushed down smoothly to just clear the bottom of the float box. This is the expected behavior.

The right-hand example, which uses hyphens: auto, should behave exactly the same, but it doesn't: observe how the text below the float jumps down by line-height increments, because spurious empty lines are being generated, each of which then displays a hyphen.

This is the underlying cause of the hang in bug 1901624.

Severity: S3 → S2
Assignee: nobody → jfkthame
Status: NEW → ASSIGNED
Pushed by jkew@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e15156aa45be Don't allow a hyphenation break to be used at start-of-line. r=layout-reviewers,emilio
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/46784 for changes under testing/web-platform/tests
Attachment #9408029 - Flags: approval-mozilla-beta?

Although this isn't a recent regression, the fact that it has resulted in a browser hang on a real-world site (see bug 1901624 and the original report in bug 1901377), together with the minimal nature of the fix, makes it worth uplifting to beta IMO, so that it gets out to users sooner.

Status: ASSIGNED → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
Target Milestone: --- → 129 Branch

beta Uplift Approval Request

  • User impact if declined: possible hang/crash depending on web-page content
  • Code covered by automated testing: yes
  • Fix verified in Nightly: no
  • Needs manual QE test: no
  • Steps to reproduce for manual QE testing: n/a
  • Risk associated with taking this patch: minimal
  • Explanation of risk level: simple condition to prevent spurious line-breaks when hyphenation is used
  • String changes made/needed: none
  • Is Android affected?: yes
Upstream PR merged by moz-wptsync-bot
Attachment #9408029 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Flags: in-testsuite+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: