Bug 84026

Summary: RTL document in <iframe> should have left-hand scrollbar.
Product: WebKit Reporter: Aharon (Vladimir) Lanin <aharon>
Component: WebCore Misc.Assignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: aharon, eric, hbono, playmobil, rniwa, tonikitoo
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 50910    
Attachments:
Description Flags
Test case. Extract the files in the zip and open iframe-scollbar-outer.html.
none
A test result on IE9 none

Description Aharon (Vladimir) Lanin 2012-04-16 05:43:35 PDT
This is a continuation of bug 54623, for the case of scrollbar on an <iframe>.

Currently, it is always on the right, even if both the <iframe> and the document inside it have direction:rtl. For an <iframe>, the scrollbar should be on the start side of the document inside it (even though that is *not* the case when the same document is displayed in a separate tab, not an <iframe>). If the thing inside the <iframe> does not have a direction, e.g. it is an image, it should be on the start side of the <iframe>'s direction. (If the latter requirement is very difficult to achieve, though, it can be relaxed.)

As usual, behavior on Mac OS X is a special case.
Comment 1 Aharon (Vladimir) Lanin 2012-04-16 05:45:54 PDT
Created attachment 137328 [details]
Test case. Extract the files in the zip and open iframe-scollbar-outer.html.
Comment 2 Eric Seidel (no email) 2012-04-16 14:07:04 PDT
Thanks!
Comment 3 Hironori Bono 2012-04-19 21:47:25 PDT
Created attachment 138040 [details]
A test result on IE9

Greetings Aharon,

Thanks for your bug report.
When I open your test file "iframe-scrollbar-outer.html" with IE9, it renders a scrollbar to the left side of its third iframe element, i.e. "<iframe src="iframe-scrollbar-inner.png"> as shown in the attached picture. Is it your expected one? (It seems IE9 does not allow an inner element of an <iframe> element to inherit the direction property from it.) If it is acceptable for you, it is not so hard to implement its fix. (As far as I have quickly investigated, WebKit does not allow it as well as IE9. Changing this behavior may need a discussion.)

Regards,

Hironori Bono
Comment 4 Aharon (Vladimir) Lanin 2012-04-22 06:16:21 PDT
(In reply to comment #3)
> Created an attachment (id=138040) [details]
> A test result on IE9
> 
> Greetings Aharon,
> 
> Thanks for your bug report.
> When I open your test file "iframe-scrollbar-outer.html" with IE9, it renders a scrollbar to the left side of its third iframe element, i.e. "<iframe src="iframe-scrollbar-inner.png"> as shown in the attached picture.

The picture you attached shows the third iframe with the scrollbar on the right, not the left. It is the same result that I get.

> Is it your expected one?

No, I want it to be on the left.

> (It seems IE9 does not allow an inner element of an <iframe> element to inherit the direction property from it.)

I do not want an HTML document in an <iframe> to inherit the direction of the iframe. I only think that it might be nice to have thaact happen for an image or other content types that can not specify their own direction. And even there, it is not a very important requirement. It's the first iframes in the test case that are important.