Main scrollbar is hidden in RTL on Mac when set to show when scrolling
Categories
(Core :: Layout: Scrolling and Overflow, defect, P3)
Tracking
()
People
(Reporter: mstriemer, Unassigned)
References
Details
(Keywords: rtl)
Attachments
(1 obsolete file)
The scrollbar is moved to the left when in RTL, but in the "show when scrolling" (default for trackpad) case on Mac there is no scrollbar shown at all in RTL. Updating the system preference to always show the scrollbar correctly shows the scrollbar on the left.
STR
- Use RTL (
intl.l10n.pseudo
=bidi
) - Go to about:preferences on a Mac
- Scroll
Expected Results:
The scrollbar is shown on the left side when scrolling.
Actual Results:
There is no scrollbar shown at all.
Comment 1•5 years ago
|
||
Markus, I don't see anything in the CSS or JS in the prefs code that'd explain this off-hand. Any idea what's going on? The same thing doesn't happen on Windows, so I'm wondering if this is some kind of bad interaction with the mac scrollbars...
Comment 2•5 years ago
|
||
Is this a regression?
Comment 3•5 years ago
|
||
The RTL adjustment is made here: https://searchfox.org/mozilla-central/rev/d061ba55ac76f41129618d638f4ef674303ec103/layout/xul/nsScrollbarFrame.cpp#180,192-194
Updated•5 years ago
|
Comment 4•5 years ago
|
||
There may be places where we don't properly handle interactions between overlay scrollbars and RTL containers.
Comment hidden (obsolete) |
Comment 6•5 years ago
|
||
Not sure I understand - this bug is about the vertical scrollbar, in a right-to-left context.
Updated•5 years ago
|
Comment 8•5 years ago
|
||
just wondering whether this also happens on mobile (I guess it does).
Comment 9•5 years ago
•
|
||
(In reply to Hiroyuki Ikezoe (:hiro) from comment #8)
just wondering whether this also happens on mobile (I guess it does).
Hm, but at least from a very quick test, I think this doesn't affect web content - at least, I don't see the issue (in fact, the scrollbar stays on the right...) using:
data:text/html,<html dir="rtl"><body>Some text<div style="height: 1500px"></div>Some more text</body>
And the code referenced in comment #3 mentions XUL a bunch. Plus, I would have thought that if we broke this on all RTL content on mac we would have had more reports before now.
I don't think we use XUL in-content on mobile (though we do use it to get <browser>
elements I think).
Comment 10•5 years ago
|
||
(In reply to Markus Stange [:mstange] from comment #2)
Is this a regression?
If it is it isn't a recent one, a build from 2017-01-01 (53a01) with intl.uidirection.en-US
set to rtl
also has this problem. I couldn't run builds from 2016-01-01 or 2015-01-01 on Mojave, so didn't dig any further.
Updated•2 years ago
|
Description
•