Open Bug 979236 Opened 10 years ago Updated 2 years ago

Right-to-Left scroll button does not work

Categories

(Core :: Layout, defect, P4)

27 Branch
defect

Tracking

()

People

(Reporter: irena.kull, Unassigned)

References

Details

(Keywords: rtl, testcase, Whiteboard: [bugday-20140310])

Attachments

(1 file, 1 obsolete file)

1.03 KB, text/html
Details
Attached file ScrollLeftRTLBug.zip (obsolete) —
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.117 Safari/537.36

Steps to reproduce:

I clicked on ScrollLeft button from the attached example in FF27


Actual results:

The button itself (and the screen content) scrolled, but the scroll bar did not move.
This happens only the 1st time. If the bar is moved manually and the button is clicked the 2nd time, the screen content and the bar are moving together, but only half a way.


Expected results:

The screen content and the scroll bar should move together all the way to the left (the bar) and all the way to the right (the content) as it is done in Chrome.
Keywords: rtl
Attached file ScrollLeftRTLBug.html
Attachment #8385263 - Attachment is obsolete: true
firefox-27.0.en-US.linux64
2013-12-01-03-02-03-mozilla-central-firefox-28.0a1.en-US.linux-x86_64
2014-03-10-03-02-01-mozilla-central-firefox-30.0a1.ru.linux-x86_64

When I click the button, the frame content and the scroll grip are moved a little (supposedly 33px) to the left.  Is that the correct behavior?
Whiteboard: [bugday-20140310]
No, it should move till the end like in Chrome
Chromium indeed scrolls to the end immediately.

https://developer.mozilla.org/en-US/docs/Web/API/Element.scrollLeft says: "if the element's direction is 'rtl' then scrollLeft is zero when the scrollbar is at its rightmost position (at start of the scrolled content) and then increasingly negative as you scroll towards the end of the content."
Component: Untriaged → DOM
Product: Firefox → Core
Chrome's behavior with scrolling in RTL containers is pretty broken in various ways.  There was a bunch of standards discussion on this, but I'm not sure what the outcome of that discussion was.  Robert, do you recall what was decided for scrollLeft?

I also can't reproduce the "first click doesn't move scrollbar" issue....
Flags: needinfo?(roc)
Latest spec status is here:
http://lists.w3.org/Archives/Public/www-style/2013Jun/0041.html

We should probably just change our behaviour to match the spec.
Flags: needinfo?(roc)
OK.
Status: UNCONFIRMED → NEW
Component: DOM → Layout
Ever confirmed: true
Depends on: 383026
Keywords: testcase
OS: Windows 7 → All
Priority: -- → P4
Hardware: x86_64 → All
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: