Commit 8f69515
[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@main1 parent 09985fa commit 8f69515
File tree
2 files changed
+6
-3
lines changed- LayoutTests/imported/w3c/web-platform-tests/css/css-tables
- Source/WebCore/rendering
2 files changed
+6
-3
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
810 | 810 | | |
811 | 811 | | |
812 | 812 | | |
813 | | - | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
814 | 817 | | |
815 | 818 | | |
816 | 819 | | |
| |||
0 commit comments