Bug 15877

Summary: REGRESSION: r27486 caused a layout regression at my bank's website
Product: WebKit Reporter: Brady Eidson <beidson>
Component: Layout and RenderingAssignee: mitz
Status: VERIFIED FIXED    
Severity: Normal CC: mitz
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.5   
Attachments:
Description Flags
Reduction - HTML + 2 images
none
HTML + 2 images
none
Screenshots of correct layout and weird layout after horizontal resizing
none
Flip the signs beidson: review+

Description Brady Eidson 2007-11-06 23:14:24 PST
http://trac.webkit.org/projects/webkit/changeset/27486 caused a layout regression at my bank's website.

It's a smaller credit union so to avoid the hassle of me debugging with my login along with someone, I have a convincing reduction which I will attach.

In the reduction, there is a green image that is a header, and a red image that is in the main content portion of the page.  

The red image should be touching the green image, and they should be left aligned.

After 27486, if you shrink the window vertically to the point where scrollbars are needed and much of the red image is not on screen, the main content div jumps to the left instead of remaining left justified with the header div.

Resizing the window horizontally while in this state shifts how much the div is off.

Before 27485 and in Firefox, these images stay touching and left-justified to each other
Comment 1 Brady Eidson 2007-11-06 23:15:08 PST
Created attachment 17096 [details]
Reduction - HTML + 2 images
Comment 2 Brady Eidson 2007-11-06 23:17:32 PST
Both on the live site and in my reduction, RenderBlock.cpp:606 is hit.

Mitz thought this was very odd on IRC  :)
Comment 3 Brady Eidson 2007-11-06 23:19:46 PST
Created attachment 17097 [details]
HTML + 2 images
Comment 4 Brady Eidson 2007-11-06 23:20:18 PST
Whoops, meant to attach screenshots.  Coming up...
Comment 5 Brady Eidson 2007-11-06 23:23:08 PST
Created attachment 17098 [details]
Screenshots of correct layout and weird layout after horizontal resizing
Comment 6 mitz 2007-11-06 23:56:35 PST
Created attachment 17100 [details]
Flip the signs

That's what happens when I try to write new code instead of copying and pasting old, working code.
Comment 7 Brady Eidson 2007-11-07 00:12:06 PST
Comment on attachment 17100 [details]
Flip the signs

Yay!
Comment 8 mitz 2007-11-07 00:16:09 PST
Landed in <http://trac.webkit.org/projects/webkit/changeset/27504>.
Comment 9 Brady Eidson 2007-11-07 09:11:23 PST
Definitely fixed.  Thanks!