Bug 26809 - Setting max-width removes percent width
Summary: Setting max-width removes percent width
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.6
: P2 Normal
Assignee: Nobody
URL: http://www.babywhale.net/maxwidth/
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-29 11:25 PDT by Alexander Romanovich
Modified: 2022-06-20 17:22 PDT (History)
5 users (show)

See Also:


Attachments
Rendering in FF (27.51 KB, image/png)
2010-01-14 06:32 PST, Alexander Romanovich
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Romanovich 2009-06-29 11:25:04 PDT
If an element is positioned absolute and has a percent width, setting max-width to "none" removes the percent width.

See attached url for example.
Comment 1 Alexander Romanovich 2010-01-14 06:32:36 PST
Created attachment 46562 [details]
Rendering in FF

Rendering on FF for comparison, illustrating the difference.
Comment 2 Ahmad Saleem 2022-06-12 18:17:10 PDT
I was able to retrieve the test case from Wayback Archives and changed into following JSFiddle:

Link - https://jsfiddle.net/vr81wz2p/show

I am not able to reproduce following using above in Safari 15.5 on macOS 12.4 and all browsers (Chrome Canary 104 and Firefox Nightly 103) renders it the same and matches with the attached sample of "Rendering in FF" from 2010.

I think this got fixed along the lines and can be closed as "RESOLVED CONFIGURATION CHANGED". If I am testing incorrectly, please retest accordingly. Thanks!
Comment 3 Alexey Proskuryakov 2022-06-20 17:22:22 PDT
Thank you for testing!