Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 7d9e5677211ce4ad9506f3566cb85b295be601dc
      
https://github.com/WebKit/WebKit/commit/7d9e5677211ce4ad9506f3566cb85b295be601dc
  Author: Alan Baradlay <[email protected]>
  Date:   2026-09-30 (Wed, 30 Sep 2026)

  Changed paths:
    M 
LayoutTests/imported/w3c/web-platform-tests/css/css-sizing/keyword-sizes-for-intrinsic-contributions-expected.txt
    M Source/WebCore/rendering/RenderBox.cpp

  Log Message:
  -----------
  [css-sizing-3] A box with a fixed width ignores max-width: max-content when 
it contributes its intrinsic size
https://bugs.webkit.org/show_bug.cgi?id=324727
<rdar://problem/188008779>

Reviewed by Elika Etemad.

    <!-- the inner box's max-content width is 150px -->
    <div style="display: inline-block">
      <div style="width: 200px; max-width: max-content">XXX XXX</div>
    </div>

The inline-block is 150px. It was 200px, so the inner box sat 150px wide inside 
a 200px box with 50px of empty space next to it.

Add missing max-content handling.

* Source/WebCore/rendering/RenderBox.cpp:
(WebCore::RenderBox::constrainIntrinsicLogicalWidthsByMinMax const):
* 
LayoutTests/imported/w3c/web-platform-tests/css/css-sizing/keyword-sizes-for-intrinsic-contributions-expected.txt:

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



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

Reply via email to