Bug 17819 - Border-collapse: collapse later cell wins on PC, earlier cell on Mac
Summary: Border-collapse: collapse later cell wins on PC, earlier cell on Mac
Status: REOPENED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tables (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows XP
: P2 Normal
Assignee: Nobody
URL: http://www.dayah.com/periodic/webkit-...
Keywords: HasReduction, PlatformOnly
Depends on:
Blocks:
 
Reported: 2008-03-12 22:32 PDT by Michael Dayah
Modified: 2022-08-30 10:00 PDT (History)
7 users (show)

See Also:


Attachments
Correct border comparison (17.36 KB, patch)
2008-03-13 14:42 PDT, mitz
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Dayah 2008-03-12 22:32:59 PDT
When two cells' borders touch in a border-collapse: collapse table, on a PC, the cell that comes later wins the border. On a Mac, the cell that comes earlier (correct behavior) wins the border. In this testcase, a PC will show a red border, Mac a blue one.

Relevant spec: http://www.w3.org/TR/CSS21/tables.html#border-conflict-resolution

The latest Safari beta, 3.0.4, shows the same behavior on PC and Mac as the latest nightly.
Comment 1 mitz 2008-03-13 14:42:42 PDT
Created attachment 19743 [details]
Correct border comparison

The reason only Windows was affected has to do with painting order, which in turn had to do with non-deterministic sorting. Now regardless of order, all cells will paint the same border with the same resolved style.
Comment 2 Dave Hyatt 2008-03-13 14:46:14 PDT
This bug is actually a dup of another one.  I remember seeing the other one in bugzilla.

Comment 3 Dave Hyatt 2008-03-13 14:46:50 PDT
Comment on attachment 19743 [details]
Correct border comparison

r=me
Comment 4 mitz 2008-03-13 15:16:38 PDT
Fixed in <http://trac.webkit.org/projects/webkit/changeset/31044>.
Comment 5 Michael Dayah 2008-03-14 12:50:32 PDT
The fix does work for edges, but not for corners. On Windows, the edge between A and B in the linked test case is now blue as it should be, but the corners above and below this edge remain red.
Comment 6 mitz 2008-03-14 15:04:10 PDT
I see the problem. This may be harder to fix.
Comment 7 Ahmad Saleem 2022-08-30 09:59:57 PDT
I took the test case from patch and changed it into JSFiddle:

- https://jsfiddle.net/4epqt9Lw/show

Few issues, I noted while using "Safari Technology Preview 152":

1) It has more bold / solid color lines compared to Firefox Nightly 106 and Chrome Canary 107

2) The overlap corners, where two lines meet, the color is different and looks like painting is not right.

Only Firefox Nightly 106 renders the corner overlap without any kind of pixelations or different tones. Both Safari and Chrome is showing corners in different colours.

Appreciate if someone can confirm, whether it requires separate bug or it is original case for which it was reopened. Thanks!