NEW 70969
Element with width: auto doesn't resize with its child
https://bugs.webkit.org/show_bug.cgi?id=70969
Summary Element with width: auto doesn't resize with its child
Marius Radvan
Reported 2011-10-26 14:48:44 PDT
Click on red rectangle. This will change the width of a child (from 0 to 150), but this doesn`t make the parent to change width (even if it has width: auto).
Attachments
Simple reproduction (1.12 KB, text/html)
2012-01-05 02:18 PST, David Barr
no flags
Andy Estes
Comment 1 2011-10-26 14:52:53 PDT
It'd be easier to look into this if the test case didn't involve jQuery.
Marius Radvan
Comment 2 2011-10-31 09:38:56 PDT
if i use display: inline-block instead of float: left, it will work at expected.
David Barr
Comment 3 2011-11-02 20:40:05 PDT
Confirmed with Google Chrome 17.0.927.0 (Official Build 108385) canary Mac OS X WebKit 535.8 (@99053).
Shane Stephens
Comment 4 2012-01-04 19:36:17 PST
Test case appears to be down. Could you ensure it remains available, or alternatively upload a html file?
Marius Radvan
Comment 5 2012-01-05 02:16:08 PST
Testcase is up again.
David Barr
Comment 6 2012-01-05 02:18:13 PST
Created attachment 121243 [details] Simple reproduction
Ahmad Saleem
Comment 7 2022-08-06 19:53:15 PDT
I am able to reproduce this bug in Safari 15.6 on macOS 12.5 using attached test case and in test case, if I click, there is "yellow" rectangle but it pushes "green" down while in all other browsers (Chrome Canary 106 and Firefox Nightly 105), it just appears between "red" and "green" rather than pushing "Green" down. Thanks!
Radar WebKit Bug Importer
Comment 8 2022-08-08 11:22:37 PDT
Note You need to log in before you can comment on or make changes to this bug.