User-Agent: Opera/9.63 (X11; FreeBSD 6.3-RELEASE i386; U; en) Presto/2.1.1 Build Identifier: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:18.104.22.168) Gecko/2009020212 Firefox/3.0.5 When HTML page in is right-to-left mode and some CSS rules are applied, FireFox doesn't show the horizontal scrollbar when it is necessary. Reproducible: Always Steps to Reproduce: 1. Open the attached 'test.html' file. 2. Change the size of your FireFox window, decrease it significally. 3. You will see that there is now horizontal scrollbar. Actual Results: No horizontal scrollbar. Expected Results: I expect horizontal scrollbar.
I mean: "3. You will see that there is _no_ horizontal scrollbar." Sorry for the typo.
Confirmed on Windows XP/Vista. It is a regression from Firefox 2.
Status: UNCONFIRMED → NEW
Component: General → Layout
Ever confirmed: true
Keywords: regression, testcase
OS: FreeBSD → All
Product: Firefox → Core
QA Contact: general → layout
Hardware: x86 → All
Version: unspecified → Trunk
Confirmed on Windows 7 FireFox 3.6.8, and there are many RTL Sites facing this issue. i.e.: http://www.shabayek.com/blog/
Created attachment 471329 [details] [diff] [review] Patch (v1) I couldn't believe my eyes when I saw this code! As far as I tested, this patch works and doesn't break anything else.
Assignee: nobody → ehsan
Status: NEW → ASSIGNED
Attachment #471329 - Flags: review?(roc)
I don't think this patch is correct. Consider a testcase like <body style="direction: rtl"> <div style="position:absolute; left:-100%; width:300%; height:100px; background:blue;"></div> With your patch, I think we'll try to have the scrollbar long enough to scroll in both directions, with the default position in the middle. Or something like that. We don't want that. In LTR documents, you can't scroll to the left of 0. In RTL documents you shouldn't be able to scroll to the right of the viewport width. I think this is actually a layout bug. In a narrow window, this wide element should be placed so that its x-coordinate is negative. Is this a regression? If so, a regression window would be helpful.
Comment on attachment 471329 [details] [diff] [review] Patch (v1) See comment
Attachment #471329 - Flags: review?(roc) → review-
in below address when i click on "Switch Text Direction" in right-click, still not show horizontal scroll bar. http://forums.sakhtafzarmag.com/
You need to log in before you can comment on or make changes to this bug.