Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: f96ae735a7f2290cb63bc5c0be04511ac368eea3
      
https://github.com/WebKit/WebKit/commit/f96ae735a7f2290cb63bc5c0be04511ac368eea3
  Author: Yulun Wu <[email protected]>
  Date:   2026-02-11 (Wed, 11 Feb 2026)

  Changed paths:
    M Source/WebCore/layout/integration/grid/LayoutIntegrationGridLayout.cpp

  Log Message:
  -----------
  [GFC] Support auto value for grid container min-width/min-height.
https://bugs.webkit.org/show_bug.cgi?id=307410
<rdar://170029904>

Reviewed by Sammy Gill.

Treat min-size: auto as 0_lu for grid container min width/height.

For width, this is equivalent to how RenderBox handles a RenderGrid inside a 
flexbox where
the auto min size is ignored and the overriding logical width is used. This 
overriding logical width
resolves to 0 when not set.

For height, this is equivalent to what RenderBox does for :

computeLogicalHeightUsing(auto) → nullopt → value_or(0).

This also matches RenderGrid's auto-repeat logic which treats min-size: auto as 
nullopt

* Source/WebCore/layout/integration/grid/LayoutIntegrationGridLayout.cpp:
(WebCore::LayoutIntegration::minimumSizeConstraint):

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



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

Reply via email to