NEW 285414
table border disappears when colspan=0 and border-collapse: collapse
https://bugs.webkit.org/show_bug.cgi?id=285414
Summary table border disappears when colspan=0 and border-collapse: collapse
Karl Dubost
Reported 2025-01-05 23:54:24 PST
Created attachment 473791 [details] rendering in safari, firefox, chrome 1. Go to https://codepen.io/webcompat/full/KwPZdEK 2. Check the last example with the title: "simple table width border=1 / colspan=0 + border-collapse:collapse" Result the second and third column seemed to have been cut off. Compare with other browsers (which seems wrong too in a subtly different way too)
Attachments
rendering in safari, firefox, chrome (316.45 KB, image/png)
2025-01-05 23:54 PST, Karl Dubost
no flags
rendering in safari, minibrowser, firefox, chrome (1.23 MB, image/png)
2025-01-20 18:40 PST, Karl Dubost
no flags
Karl Dubost
Comment 1 2025-01-05 23:55:35 PST
The simplified test case <table border="1" style="border-collapse:collapse"> <tr><td colspan="0">A1</td></tr> <tr><td>B1</td><td>B2</td><td>B3</td></tr> <tr><td>C1</td><td>C2</td><td>C3</td></tr> </table>
Karl Dubost
Comment 2 2025-01-05 23:56:50 PST
Probably the rendering should be like <b>simple table width border=1 / colspan=3 + border-collapse:collapse</b> <table border="1" style="border-collapse:collapse"> <tr><td colspan="3">A1</td></tr> <tr><td>B1</td><td>B2</td><td>B3</td></tr> <tr><td>C1</td><td>C2</td><td>C3</td></tr> </table>
Radar WebKit Bug Importer
Comment 3 2025-01-05 23:57:00 PST
Karl Dubost
Comment 4 2025-01-20 18:40:42 PST
Created attachment 473962 [details] rendering in safari, minibrowser, firefox, chrome This is the rendering for (from left to right, top to bottom) Safari Technology Preview 211 20621.1.9.111.1 Firefox Nightly 136.0a1 13625.1.19 MiniBrowser with my patch for rowspan=0 Bug 185341 (probably will be in STP 212) Google Chrome Canary 134.0.6969.0 6969.0 We can see that the external border in the case of colspan is not drawn for Safari/Minibrowser in the case of "colspan=0" PS: There is another difference which is in between colspan and rowspan behavior but which is identical for all browsers see Bug 285415
Note You need to log in before you can comment on or make changes to this bug.