Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 242f6e14a5b378af90d5803fc63f58123e8ca330
      
https://github.com/WebKit/WebKit/commit/242f6e14a5b378af90d5803fc63f58123e8ca330
  Author: Alan Baradlay <[email protected]>
  Date:   2026-04-15 (Wed, 15 Apr 2026)

  Changed paths:
    A 
LayoutTests/imported/w3c/web-platform-tests/css/css-tables/table-stretch-in-flex-and-grid-expected.txt
    A 
LayoutTests/imported/w3c/web-platform-tests/css/css-tables/table-stretch-in-flex-and-grid.html
    M Source/WebCore/rendering/RenderTable.cpp

  Log Message:
  -----------
  Broken 'button' layout with display:table on www.weekly10.com
https://bugs.webkit.org/show_bug.cgi?id=262111
<rdar://problem/116110440>

Reviewed by Antti Koivisto.

When a table is a flex or grid item, the container can stretch it to
match the tallest sibling. The stretched height is a "border-box"
value -- it includes the table's border and padding on all sides.

To figure out how much space the rows get, we need to subtract the
border and padding from this stretched height. The code was only
subtracting the bottom border+padding, forgetting the top side.
So the table ended up too tall by exactly one side of padding
(or border).

* 
LayoutTests/imported/w3c/web-platform-tests/css/css-tables/table-stretch-in-flex-and-grid.html:
 Added.
* Source/WebCore/rendering/RenderTable.cpp:
(WebCore::RenderTable::layout):

Canonical link: https://commits.webkit.org/311276@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to