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

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

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

Anomie assigned this task to wassan.anmol117.