RESOLVED CONFIGURATION CHANGED 110868
Regression(r133037): Weird width:50% in tables
https://bugs.webkit.org/show_bug.cgi?id=110868
Summary Regression(r133037): Weird width:50% in tables
webkit
Reported 2013-02-26 03:51:49 PST
Created attachment 190254 [details] Test case. Create a page with the following contents: <div style="white-space:nowrap;float:left;outline:1px solid red"> <table> <tr> <td style="width:200px"> <!-- Fix 2: remove float:left (WAT!) --> <table style="width:100%;float:left"> <tr> <td> <!-- Remove width:100% to trigger the issue in Chrome 24 as well --> <table style="width:100%"> <tr> <td style="width:50%"> Cell 1 </td> <td style="width:50%"> <div style="width:400px;outline: 1px solid blue"> Cell 2, with a 400px DIV. </div> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </div> The red DIV has been forced to be 200px wide but it has a 400 px (blue) DIV inside of it. Therefore, "Cell 1" should shrink to its very minimum, but it is matching the sice of "Cell 2". Check the comments for two possible "fixes" :/ This issue impacts CKEditor dialogs rendering: http://dev.ckeditor.com/ticket/10123 Confirmed with Chrome 25.0.1364.99 and Safari 6.0.2 (8536.26.17). Works well with Chrome 24.
Attachments
Test case. (1.07 KB, text/html)
2013-02-26 03:51 PST, webkit
no flags
TC Screenshot with Chrome 24 = GOOD (44.32 KB, image/png)
2013-02-28 01:33 PST, webkit
no flags
TC Screenshot with Chrome 25/26 = BAD (44.92 KB, image/png)
2013-02-28 01:34 PST, webkit
no flags
smaller test case (400 bytes, text/html)
2013-03-04 19:31 PST, Ojan Vafai
no flags
Patch (6.83 KB, patch)
2013-05-24 07:08 PDT, Arpita Bahuguna
no flags
Patch (7.07 KB, patch)
2013-05-27 02:49 PDT, Arpita Bahuguna
bfulgham: review-
Safari 15.5 matches other browsers (601.75 KB, image/png)
2022-06-02 11:52 PDT, Ahmad Saleem
no flags
webkit
Comment 1 2013-02-26 03:55:17 PST
Although we've noticed the issue in Chrome 25, if you follow the source code comments and remove that width:100%, the same issue can be confirmed with Chrome 24 as well.
Alexey Proskuryakov
Comment 2 2013-02-27 11:24:11 PST
I don't see any difference between Safari 6.0.2, current ToT, and Chrome 25 on this test case.
webkit
Comment 3 2013-02-28 01:33:47 PST
Created attachment 190677 [details] TC Screenshot with Chrome 24 = GOOD
webkit
Comment 4 2013-02-28 01:34:23 PST
Created attachment 190678 [details] TC Screenshot with Chrome 25/26 = BAD
webkit
Comment 5 2013-02-28 01:45:31 PST
(In reply to comment #2) > I don't see any difference between Safari 6.0.2, current ToT, and Chrome 25 on this test case. The difference is not between Safari and Chrome. As described in my original message, I've confirmed the issue in both browser. Sorry if I didn't make it clear. The difference can be seen with Chrome 25/26 and Chrome 24. The TC works well with the older version, but not with newer ones. I'm sure the same may happen with older Safari versions, but that's not the point. The point is that it works well with WebKit 537.17 (Chrome 24) but got broken at some point after that, confirmed with WebKit 537.22 (Chrome 25). I have attached a screenshot made with Chrome 24 and Chrome 25 that shows the difference.
webkit
Comment 6 2013-02-28 01:46:16 PST
Sorry for the "retina sized" screenshots :)
Ojan Vafai
Comment 7 2013-03-04 19:31:05 PST
Created attachment 191380 [details] smaller test case Here's a simplified testcase. I didn't verify if this was a regression, but I did verify that Chrome 26 does not match IE9 or FF19. So, I think we can call this a legitimate bug.
Tony Chang
Comment 8 2013-03-08 15:43:14 PST
I bisected the original test case to r133037. Ojan's test case appears to fail on all versions of Chrome that I tested (back to Chrome 18). I think it's also a bug, but not exactly the same as the original test case.
Arpita Bahuguna
Comment 9 2013-03-11 17:57:32 PDT
(In reply to comment #8) > I bisected the original test case to r133037. > > Ojan's test case appears to fail on all versions of Chrome that I tested (back to Chrome 18). I think it's also a bug, but not exactly the same as the original test case. Hi Tony, This issue is indeed a regression caused by r133037. I would readily work on this but currently i am travelling, till the 18th of march, and can only work on this issue post 18th. If required, please feel free to revert my change else after 18th I will definitely work on a fix for the same. Apologize for the inconvenience and the delay.
Robert Hogan
Comment 10 2013-05-19 10:33:50 PDT
Arpita: are you looking at this regression?
Arpita Bahuguna
Comment 11 2013-05-19 22:48:48 PDT
(In reply to comment #10) > Arpita: are you looking at this regression? Hi Robert, as a matter of fact fixing this regression had always been at the top of my agenda, but it kept getting sidelined due to some other priorities at work. However, I definitely intend to make some time for it now! Thanks for bringing this back to my attention. :)
Arpita Bahuguna
Comment 12 2013-05-24 07:08:23 PDT
Arpita Bahuguna
Comment 13 2013-05-27 02:49:14 PDT
Brent Fulgham
Comment 14 2016-03-11 16:09:41 PST
Comment on attachment 202958 [details] Patch The patch doesn't apply against the current state of WebKit. Could you please provide an up-to-date patch for review?
Ahmad Saleem
Comment 15 2022-06-02 11:52:30 PDT
Created attachment 459969 [details] Safari 15.5 matches other browsers I am not able to reproduce this using attached test case in Safari 15.5 on macOS 12.4. It is matching all other browsers as visible in the attached screenshots. I think down the line, it got fixed. Hence, it should be marked as "RESOLVED CONFIGURATION CHANGED". Thanks!
zalan
Comment 16 2022-06-02 12:07:27 PDT
(In reply to Ahmad Saleem from comment #15) > Created attachment 459969 [details] > Safari 15.5 matches other browsers > > I am not able to reproduce this using attached test case in Safari 15.5 on > macOS 12.4. It is matching all other browsers as visible in the attached > screenshots. > > I think down the line, it got fixed. Hence, it should be marked as "RESOLVED > CONFIGURATION CHANGED". Thanks! Thank you!
Note You need to log in before you can comment on or make changes to this bug.