WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
Bug 22881
incorrect size computing of absolute element on window resize
https://bugs.webkit.org/show_bug.cgi?id=22881
Summary
incorrect size computing of absolute element on window resize
Max Barel
Reported
2008-12-16 11:16:47 PST
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
Attachments
test case, load and rezise the window.
(545 bytes, application/xhtml+xml)
2008-12-16 11:18 PST
,
Max Barel
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Max Barel
Comment 1
2008-12-16 11:18:38 PST
Created
attachment 26057
[details]
test case, load and rezise the window. File is XHTML but the bug shows the same as html.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug