mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-23 02:05:42 +00:00
d0e2761f49
The addition of unicode-plaintext to the pre element will make RTL text to appear from right to left. The html[dir] pre rule will make sure that this addition won't break the 'switch page direction' functionality. MozReview-Commit-ID: 2JXJjqt2iuX --HG-- extra : rebase_source : 98c85228ce50fa145bfaa77051532f69e92ba98d
15 lines
478 B
CSS
15 lines
478 B
CSS
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
pre {
|
|
white-space: pre-wrap;
|
|
word-wrap: break-word;
|
|
-moz-control-character-visibility: visible;
|
|
}
|
|
|
|
/* Make text go with the rules of dir=auto, but allow it to be overriden if 'Switch Text Direction' is triggered */
|
|
html:not([dir]) pre {
|
|
unicode-bidi: plaintext;
|
|
}
|