Revert "(bug 260) Wrap <pre> overflow properly."
authorTim Starling <tstarling@wikimedia.org>
Thu, 2 Aug 2012 04:48:06 +0000 (14:48 +1000)
committerTim Starling <tstarling@wikimedia.org>
Thu, 2 Aug 2012 04:51:42 +0000 (14:51 +1000)
Due to bug 38800. Just reverting to prevent accidental deployment in
1.20wmf9. I would set a fixme status instead if there was such a thing.

The problem with this is that it breaks formatting of thousands of
Wikipedia articles due to interaction with SyntaxHighlight_GeSHi. I'm
sure some satisfactory solution can be found which fixes both bugs, but
leaving this commit deployed is not a good interim solution.

This reverts commit 782b9f177404f02417c03abaf96b371e1462f160.

Change-Id: I1977f093563b5658def9ba57a6ea6cfa9796f795

skins/common/commonElements.css

index 57f81a0..02fd29f 100644 (file)
@@ -198,22 +198,6 @@ pre, .mw-code {
        border: 1px dashed #2f6fab;
        color: black;
        background-color: #f9f9f9;
-
-       /*
-        * Wrap properly.
-        * - pre-wrap: causes the browser to naturally wrap by displaying
-        *   words on the next line if they don't fit on the same line
-        *   within the box (does not cut off words).
-        * - break-word: forces the browser to wrap anywhere (even within
-        *   a word) if it is (still) too long for the line.
-        * When only using break-word in a <pre>, the browser only uses
-        * the force behavior and as a result almost always cuts half-way
-        * a word. When only using pre-wrap, too-long words will still
-        * cause the page layout to break. The combination is magic :).
-        * See also https://bugzilla.wikimedia.org/show_bug.cgi?id=260#c20
-        */
-       white-space: pre-wrap;
-       word-wrap: break-word;
 }
 
 /* Tables */