Bug 26809

Summary: Setting max-width removes percent width
Product: WebKit Reporter: Alexander Romanovich <alex>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Normal CC: ahmad.saleem792, ap, rniwa, simon.fraser, zalan
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.6   
URL: http://www.babywhale.net/maxwidth/
Attachments:
Description Flags
Rendering in FF none

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!