[Webkit-unassigned] [Bug 22881] New: incorrect size computing of absolute element on window resize

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Dec 16 11:16:47 PST 2008


https://bugs.webkit.org/show_bug.cgi?id=22881

           Summary: incorrect size computing of absolute element on window
                    resize
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh
        OS/Version: Mac OS X 10.5
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: max at ac-mb.info


Hi,
Given an absolutely positioned element (say a div) with relative height,
containing, say, an img. This img has height 100% and width auto. The img width
compute ok. The div width shrink to the content size at load time, correct.
Now if one resize the window, height are correctly computed BUT the container
width is not, staying at original size. Using "overflow:hidden" does not
resolve the problem.
This is NOT the "evangelism bug" #15286. Absolute element should shrink to
content width, after this one is computed.
See attached test case. Load the file and resize.

FireFox is also showing misbehavior, it does not even shrink width at first
load, using the image natural width as content width.

This may be related to another, fixed, bug I reported:
https://bugs.webkit.org/show_bug.cgi?id=20941


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list