Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 6db96cd11f963bfa6a9874768309a175de3049cd
      
https://github.com/WebKit/WebKit/commit/6db96cd11f963bfa6a9874768309a175de3049cd
  Author: Yulun Wu <[email protected]>
  Date:   2026-06-30 (Tue, 30 Jun 2026)

  Changed paths:
    M Source/WebCore/layout/formattingContexts/grid/GridLayoutUtils.cpp

  Log Message:
  -----------
  [GFC] fit-content grid items should contribute min-content instead of used 
minimum size when sizing tracks.
https://bugs.webkit.org/show_bug.cgi?id=318159
<rdar://180968579>

Reviewed by Sammy Gill.

315911@main incorrectly included preferredSize.isFitContent() in
GridLayoutUtils::preferredSizeDependsOnContainingBlockSize(), causing
grid items with fit-content to incorrectly contribute used minimum size
instead of min-content size when sizing tracks.

Note that our avoidance reasons are only allowing grids with auto and
fixed grid item widths to run
through
GFC.

https://flagged.apple.com:443/proxy?t2=Dv1U4l8nU6&o=aHR0cHM6Ly9zZWFyY2hmb3gub3JnL3d1YmthdC9zb3VyY2UvU291cmNlL1dlYkNvcmUvbGF5b3V0L2ludGVncmF0aW9uL2dyaWQvTGF5b3V0SW50ZWdyYXRpb25HcmlkQ292ZXJhZ2UuY3BwIzIyNg==&emid=dab8373c-6503-4b8a-b3c2-a47ecbe097bd&c=11

* Source/WebCore/layout/formattingContexts/grid/GridLayoutUtils.cpp:
(WebCore::Layout::GridLayoutUtils::preferredSizeDependsOnContainingBlockSize):

Canonical link: 
https://flagged.apple.com:443/proxy?t2=Dt0H7X3py7&o=aHR0cHM6Ly9jb21taXRzLndlYmtpdC5vcmcvMzE2MjAyQG1haW4=&emid=dab8373c-6503-4b8a-b3c2-a47ecbe097bd&c=11



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

Reply via email to