In the URL listed, the background behind the text is supposed to be white. This renders correctly in: IE7, FireFox 3, and Opera 9. In Chrome and Safari, the background is not the correct color.
Confirmed inconsistency with other browsers (Firefox, Opera) in quirks mode. This particular code should render green box. <p>There should be green box below</p> <table cellpadding="0" width="100"> <td height="100" bgcolor="green"></td> </table> This doesn't happen in WebKit r39669.
Created attachment 26485 [details] test case
Rendering mode is irrelevant in this case. Bug is visible in quirks mode as well as in strict mode.
Hi, I have the following analysis on this bug.Kindly guide me if I am wrong in my approach. The default cellpading attribute value is "1". When cellpadding="0" and while parsing this attribute, m_padding is set to 0 which should be 1. So I have added an extra condition in the "if" statement checking if cell padding is 0 then preventing from reseting m_padding to 0 in the parseMappedAttribute()of the HTMLTableElement.cpp. Let me know if this proposal can be used to fix this bug.
In <td> if you mention the width attribute it will display properly.
I am not able to reproduce this bug using attached test case and it shows "Green" box / square in Safari 15.6.1 and STP 153 similar to other browsers (Chrome Canary 107 and Firefox Nightly 106). I am going to mark this as "RESOLVED CONFIGURATION CHANGED". Thanks!