<rdar://problem/4590613> * SUMMARY drop down menus at http://movies.aol.com/movie-photo-bts/superman-returns have regressed. they are being rendered off the to the right. * STEPS TO REPRODUCE 0. TOT 1. http://movies.aol.com/movie-photo-bts/superman-returns 2. mouse over the menu bar with items such as "main", "showtimes & tix" "reviews & picks" , etc. * RESULTS menus aren't drawn in correct position * REGRESSION this is a regression from Tiger Safari.
I can't figure out why this worked in Tiger, but I do see what's going wrong. The relevant function is this one, from channels.js: function bb_left(o){ var x=0; while(o.offsetParent){ x+=o.offsetLeft; o=o.offsetParent; } // x+=o.offsetLeft; return x; } In Firefox this works because the body has an offsetLeft of 0. In WebKit, the offsetLeft is the distance from the left side of the body to the left side of the window.
Created attachment 9471 [details] test case to demonstrate difference in body offset properties
Created attachment 9472 [details] patch, including change log and a layout test
Comment on attachment 9472 [details] patch, including change log and a layout test r=me
Created attachment 9501 [details] these additional corrections to layout tests also need to be landed
Committed revision 15471.