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

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

  Log Message:
  -----------
  [GFC] Handle percentage and calc specified size suggestion.
https://bugs.webkit.org/show_bug.cgi?id=312409
<rdar://174863227>

Reviewed by Sammy Gill.

Per https://drafts.csswg.org/css-grid-2/#specified-size-suggestion:
"If the item’s preferred size in the relevant axis is definite, then the
specified size suggestion is that size. It is otherwise undefined.""

This PR updates GridLayoutUtils to handle inline and block specified
size suggestions for percentage and calc sizing. Previously percent
and calc preferred size would hit ASSERT_NOT_IMPLEMENTED_YET().

This PR also pipes sizes needed to resolve percent and calc values.

* Source/WebCore/layout/formattingContexts/grid/GridLayoutUtils.cpp:
(WebCore::Layout::GridLayoutUtils::inlineSpecifiedSizeSuggestion):
(WebCore::Layout::GridLayoutUtils::blockSpecifiedSizeSuggestion):
(WebCore::Layout::GridLayoutUtils::automaticMinimumInlineSize):
(WebCore::Layout::GridLayoutUtils::automaticMinimumBlockSize):
(WebCore::Layout::GridLayoutUtils::usedInlineMinimumSize):
(WebCore::Layout::GridLayoutUtils::usedBlockMinimumSize):

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



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

Reply via email to