Page MenuHomePhabricator

VE: Firefox doesn't break lines after arrow indicating linebreak
Open, Needs TriagePublic

Description

When editing in visual mode Firefox (and perhaps other browsers, too) doesn't break lines after the arrow that is used to display a linebreak. This can cause a display very differently from the normal page.

Steps to reproduce:

  1. Look at https://de.wikipedia.org/wiki/Hilfe:Bilder. There is a box just above the TOC "Stichwortverzeichnis", which breaks into multiple lines. (Make the window smaller to get at least three lines for most obvious result in the next step.)
  2. Open the page in VE in Firefox.

Expected result: The box looks similar.
Actual result: The line only breaks at the reference, causing the box to overflow.
Note that the entries all use white-space:nowrap and are separated by linebreaks.

I didn't test other browsers, but from experience I wouldn't be surprised if this only happens in Firefox.
If possible, a <wbr> or some CSS should be used to allow linebreaks after the arrow.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

This is still a problem (and it affects all browsers). That page changed, so you have to test with this old revision: https://de.wikipedia.org/w/index.php?title=Hilfe:Bilder&oldid=161636983

Read modeVisual editor
image.png (980×1 px, 315 KB)
image.png (980×1 px, 349 KB)

Because we replace the newline character with the fancy arrow, the browser can no longer break the line at these locations.