Closed Bug 526477 Opened 15 years ago Closed 14 years ago

[RTL] rtl pages clipped on left

Categories

(Firefox for Android Graveyard :: General, defect)

Fennec 1.1
x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: tuukka.tolvanen, Unassigned)

References

Details

(Keywords: rtl, Whiteboard: resolveme 2010-10-7)

Attachments

(3 files)

Attached file testcase
On rtl pages, the overflow is cropped out on the left side.

Examples:
http://ar-ar.facebook.com/ (may need to manually select non-mobile site and then arabic at bottom)
http://likud.org.il/
http://fa.wikipedia.org/

The width of the canvas appears to be correct, but the content is set in it such that the left edge is clipped and there's empty space on the right.
Attached image ar fb screenshot
This is fennec1.0b4; I think b3 behaved differently on some of these cases.
Same thing on Beta 5
tracking-fennec: --- → 1.0-
I'm not sure but it seems that IgnoreScrollFrame rendering way and rootScrollFrame scroll position conflicting between each other.

LTR fb we are calculating scrollPos from left/top page point (0,0), in RTL fb we  are calculating scrollPos from scrollMaxX, 0  page point in layout coordinates.

And to be able render left part of RTL fb in IgnoreScrollFrame mode, we should give negative layout coordinates...

roc, any ideas why here is the such strange behavior?
If on RTL page we call:
javascript:window.scrollX; 

it show negative value... but
javascript:window.scrollMaxX;
show positive value..
is it by standard or or what?

Btw: in google-chrome RTL facebook also broken.
(In reply to comment #4)
> And to be able render left part of RTL fb in IgnoreScrollFrame mode, we should
> give negative layout coordinates...

That sounds right. Does it work?

> roc, any ideas why here is the such strange behavior?

That's just what we (and other browsers) do.
Fennec needs to support rtl in general. THere's a bug on file for this and marking this bug as dependent on the other.
Depends on: 476423
Keywords: rtl
Summary: rtl pages clipped on left → [RTL] rtl pages clipped on left
tracking-fennec: 1.0- → ?
Litmus Test case : https://litmus.mozilla.org/show_test.cgi?searchType=by_id&id=12774 added.

Disabled until this bug is fixed.
Flags: in-litmus? → in-litmus+
Naoki - I assume this bug is still a problem?
Whiteboard: resolveme 2010-10-7
Status: NEW → RESOLVED
tracking-fennec: ? → ---
Closed: 14 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: