Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 8f695151e326f093b36e528823f18412f3ff2633
https://github.com/WebKit/WebKit/commit/8f695151e326f093b36e528823f18412f3ff2633
Author: Ahmad Saleem <[email protected]>
Date: 2026-02-26 (Thu, 26 Feb 2026)
Changed paths:
M
LayoutTests/imported/w3c/web-platform-tests/css/css-tables/collapsed-scroll-overflow-expected.txt
M Source/WebCore/rendering/RenderTable.cpp
Log Message:
-----------
[CSS Tables] scrollWidth incorrectly inflated by collapsed border overflow
https://bugs.webkit.org/show_bug.cgi?id=291514
rdar://149675907
Reviewed by Alan Baradlay.
This patch aligns WebKit with Gecko / Firefox and Blink / Chromium.
Collapsed borders that extend outside a table's border box are a painting
artifact and should not contribute to scrollable overflow. Previously,
addOverflowFromInFlowChildren() passed the collapsed border overflow rect
to both addLayoutOverflow() and addVisualOverflow(), causing the scroll
container's scrollWidth/scrollHeight to include the outer half of any
collapsed section/cell border. Remove the addLayoutOverflow() call so only
visual overflow is recorded for collapsed border geometry.
*
LayoutTests/imported/w3c/web-platform-tests/css/css-tables/collapsed-scroll-overflow-expected.txt:
* Source/WebCore/rendering/RenderTable.cpp:
(WebCore::RenderTable::addOverflowFromInFlowChildren):
Canonical link: https://commits.webkit.org/308311@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications