Page MenuHomePhabricator

Scribunto console doesn't use "pre-wrap" formatting
Closed, ResolvedPublic

Description

The current CSS for the console log in ext.scribunto.edit.css is

/* Preserve line breaks, but wrap too if browser supports it */
#mw-scribunto-output {
  white-space: pre;
  white-space: -moz-pre-wrap;
}

According to Mozilla Developer Network, pre-wrap is unprefixed since Firefox 3.0, which is the oldest Grade C version of FF (and is not used by other browsers). So it can be safely unprefixed:

/* Preserve line breaks, but wrap too if browser supports it */
#mw-scribunto-output {
  white-space: pre;
  white-space: pre-wrap;
}

The prefixed version is not supported in the current version of Firefox, so the console makes the page very wide, which is quite uncomfortable.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptFeb 13 2017, 10:42 AM
Restricted Application added a subscriber: TerraCodes. · View Herald TranscriptFeb 13 2017, 3:33 PM

I would like to do the task. :)

Change 342901 merged by jenkins-bot:
[mediawiki/extensions/Scribunto] Fix pre-wrap formatting for Mozilla Firefox

https://gerrit.wikimedia.org/r/342901

Anomie closed this task as Resolved.