Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 1d39fb9b1f02c7ff74d321a06faaa488463b4c37
https://github.com/WebKit/WebKit/commit/1d39fb9b1f02c7ff74d321a06faaa488463b4c37
Author: Ahmad Saleem <[email protected]>
Date: 2026-03-10 (Tue, 10 Mar 2026)
Changed paths:
A
LayoutTests/imported/w3c/web-platform-tests/css/css-tables/collapsed-border-background-inset-expected-mismatch.html
A
LayoutTests/imported/w3c/web-platform-tests/css/css-tables/collapsed-border-background-inset-notref.html
A
LayoutTests/imported/w3c/web-platform-tests/css/css-tables/collapsed-border-background-inset.html
M Source/WebCore/rendering/RenderTableCell.cpp
Log Message:
-----------
Cell background in collapsed-border table extends into adjacent cells' border
space at table edges
https://bugs.webkit.org/show_bug.cgi?id=309488
rdar://172068907
Reviewed by Alan Baradlay.
This patch aligns WebKit with Gecko / Firefox and Blink / Chromium
When a table uses border-collapse and cells in the same column have different
border widths, the column width includes space for the maximum collapsed border
inner halves. Cells with narrower borders paint their background across the full
allocated width, extending into space that belongs to other cells' borders.
Fix by insetting the cell's background fill rect at the table's outer edges
(first and last columns) to account for the difference between this cell's
border half and the maximum border half in that column. Interior column edges
are left unadjusted so backgrounds remain continuous across the row.
* Source/WebCore/rendering/RenderTableCell.cpp:
(WebCore::RenderTableCell::paintBackgroundsBehindCell):
*
LayoutTests/imported/w3c/web-platform-tests/css/css-tables/collapsed-border-background-inset-expected-mismatch.html:
Added.
*
LayoutTests/imported/w3c/web-platform-tests/css/css-tables/collapsed-border-background-inset-notref.html:
Added.
*
LayoutTests/imported/w3c/web-platform-tests/css/css-tables/collapsed-border-background-inset.html:
Added.
Canonical link: https://commits.webkit.org/308969@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications