Remove 'direction: ltr' from 'pre' styles
authorBartosz Dziewoński <matma.rex@gmail.com>
Thu, 25 Jun 2015 11:08:18 +0000 (13:08 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Thu, 25 Jun 2015 11:08:18 +0000 (13:08 +0200)
The 'direction' and 'unicode-bidi' rules must not be made default.
Right-to-left languages can use preformatted text too!

Follow-up to 054b1c9e3cd82ee96bb6ee2be3026497e5f9f099.

(Also linked T2260, which that commit fixed.)

Bug: T103780
Change-Id: Ieab6b1473e6ce0faed3617d11e57cd2b4f3ef6df

resources/src/mediawiki.skinning/elements.css

index 6986034..cbc97ab 100644 (file)
@@ -194,15 +194,13 @@ code {
        padding: 1px 4px;
 }
 
-pre, .mw-code {
+pre,
+.mw-code {
        color: black;
        background-color: #f9f9f9;
        border: 1px solid #ddd;
        padding: 1em;
-       /* @noflip */
-       direction: ltr;
-       unicode-bidi: embed;
-       /* Wrap lines in overflow. T103780 */
+       /* Wrap lines in overflow. T2260, T103780 */
        white-space: pre-wrap;
 }