Bug 5800 - Absolutely-positioned element in RTL parent is positioned incorrectly if its left and right are auto
Summary: Absolutely-positioned element in RTL parent is positioned incorrectly if its ...
Status: VERIFIED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 420+
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Dave Hyatt
URL: http://shinui.org.il/site/
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-22 07:01 PST by mitz
Modified: 2005-12-02 01:08 PST (History)
0 users

See Also:


Attachments
testcase (1.35 KB, text/html)
2005-11-22 07:03 PST, mitz
no flags Details
Calculate the distance from the right correctly in this case (1.51 KB, patch)
2005-11-22 07:08 PST, mitz
darin: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description mitz 2005-11-22 07:01:54 PST
An element with position:absoulte; right:auto; left:auto; whose parent has direction:rtl ends up having 
incorrect horizontal position. See the URL (where the ticker text is on the wrong side of the page) or the 
attached testcase.

(Firefox does not render the 2-box test case as expected due to what I think is a bug in Firefox; WinIE 
does not have that bug but renders it incorrectly because of borders).
Comment 1 mitz 2005-11-22 07:03:24 PST
Created attachment 4764 [details]
testcase

This can go into fast/block/positioning/auto
Comment 2 mitz 2005-11-22 07:08:12 PST
Created attachment 4765 [details]
Calculate the distance from the right correctly in this case

Also removed a couple of redundant checks.
Comment 3 Darin Adler 2005-11-22 19:41:39 PST
Comment on attachment 4765 [details]
Calculate the distance from the right correctly in this case

r=me