3 ms·
Oh, that's awesome. The CSS is clearly setting these to display:block, so they should in fact stack. But the page is also in quirks mode (no doctype), and in
by bzbarsky 11y ago
Oh, that's awesome.
The CSS is clearly setting these to display:block, so they should in fact stack. But the page is also in quirks mode (no doctype), and in quirks mode Chrome (and WebKit) seems to compute the display of <td> to "table-cell" no matter what the styles say.
So yeah, someone just wrote CSS that depends on a bug in Chrome/WebKit and either didn't bother to test in other browsers or doesn't care whether it works there.
Edit: https://code.google.com/p/chromium/issues/detail?id=369979 https://code.google.com/p/chromium/issues/detail?id=369979 is the 1.5-year-old bug report on Chrome to remove this unnecessary quirk. Let's see what HN does if/when the Chrome folks fix that one...
- pmontra 11y agoInteresting explanation. Thanks. Btw this could prove my point that people ditch browsers because of bugs of sites, if those sites look good in other browsers.
- bzbarsky 11y agoThank _you_ for actually digging into the CSS and finding the problem!
- rubberstamp 11y agoThis is awesome, as expected from tech crowd. As soon as I got time to look into this, someone else has figured it all out. Many eyes/brains on the bug means quickly figuring out issues. If it was open source the patch for this would probably be in testing now. Active and very Awesome community!!
- tripzilch 11y agoquirksmode, table-cells... I don't think the problem here is the browser.