Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 95238f7747df0bff6dbac4535b957e2a5b7b9228
      
https://github.com/WebKit/WebKit/commit/95238f7747df0bff6dbac4535b957e2a5b7b9228
  Author: Ahmad Saleem <[email protected]>
  Date:   2025-06-14 (Sat, 14 Jun 2025)

  Changed paths:
    M 
LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/align-content-wrap-003-expected.txt
    M Source/WebCore/rendering/RenderFlexibleBox.cpp

  Log Message:
  -----------
  [CSS-Flexbox] Fallback to 'safe center' for 'align-content'
https://bugs.webkit.org/show_bug.cgi?id=294506
rdar://153403381

Reviewed by Alan Baradlay.

This patch aligns WebKit with Web Specification [1] & [2]:

[1] https://www.w3.org/TR/css-align-3/#valdef-align-content-space-around
[2] https://www.w3.org/TR/css-align-3/#valdef-align-content-space-evenly

For both 'space-around' and 'space-evenly', the default fallback alignment
is 'space center'.

This patch clamps the value to 'non-negative' by using `std::max`.

* Source/WebCore/rendering/RenderFlexibleBox.cpp:
(WebCore::initialAlignContentOffset):
* 
LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/align-content-wrap-003-expected.txt:
 Progression

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to