Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: aade63473a3efaacf2d121524fdcbcd33c4d8871
https://github.com/WebKit/WebKit/commit/aade63473a3efaacf2d121524fdcbcd33c4d8871
Author: Ahmad Saleem <[email protected]>
Date: 2026-02-16 (Mon, 16 Feb 2026)
Changed paths:
M LayoutTests/TestExpectations
M Source/WebCore/rendering/RenderTableCell.cpp
Log Message:
-----------
Inset box-shadow incorrectly positioned on table cells with collapsed borders
https://bugs.webkit.org/show_bug.cgi?id=306607
rdar://169254286
Reviewed by Darin Adler.
This patch aligns WebKit with Gecko / Firefox and Blink / Chromium.
When painting inset box-shadows on table cells with collapsed borders,
we were positioning the shadow too far inward, exposing the background
color. This occurred because collapsed borders report half-widths through
borderTop()/borderLeft() etc., but BackgroundPainter expects the border
box to be at the outer edge when calculating inset shadow bounds.
The fix expands the paint rect by the half-widths before passing it to
BackgroundPainter for inset shadows. BackgroundPainter then subtracts
these half-widths to compute the inner edge, correctly positioning the
inset shadow at the true inner edge of the collapsed border.
* Source/WebCore/rendering/RenderTableCell.cpp:
(WebCore::RenderTableCell::paintBoxDecorations):
* LayoutTests/TestExpectations: Progression
Canonical link: https://commits.webkit.org/307661@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications