diff --git a/b2g/app/b2g.js b/b2g/app/b2g.js index 2c3b697d037e..d5a959b04f53 100644 --- a/b2g/app/b2g.js +++ b/b2g/app/b2g.js @@ -688,6 +688,9 @@ pref("ui.useOverlayScrollbars", 1); pref("ui.scrollbarFadeBeginDelay", 450); pref("ui.scrollbarFadeDuration", 200); +// Scrollbar position follows the document `dir` attribute +pref("layout.scrollbar.side", 1); + // Enable the ProcessPriorityManager, and give processes with no visible // documents a 1s grace period before they're eligible to be marked as // background. Background processes that are perceivable due to playing diff --git a/b2g/chrome/content/content.css b/b2g/chrome/content/content.css index bbab3aeba6f7..64777cff7ef9 100644 --- a/b2g/chrome/content/content.css +++ b/b2g/chrome/content/content.css @@ -36,6 +36,13 @@ xul|scrollbar[orient="vertical"] { max-width: 8px; } +/* workaround for bug 1119057: as -moz-margin-start may not work as expected, + * force a right margin value in RTL mode. */ +[dir="rtl"] xul|scrollbar[root="true"][orient="vertical"] { + -moz-margin-start: unset; + margin-right: -8px; +} + xul|scrollbar[orient="vertical"] xul|thumb { max-width: 6px !important; min-width: 6px !important;