Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 882dbad31006c15570ac8ac2758d86a0b1c690d3
https://github.com/WebKit/WebKit/commit/882dbad31006c15570ac8ac2758d86a0b1c690d3
Author: Alan Baradlay <[email protected]>
Date: 2026-10-01 (Thu, 01 Oct 2026)
Changed paths:
M
LayoutTests/imported/w3c/web-platform-tests/css/css-values/calc-size/calc-size-width-box-sizing-expected.txt
M Source/WebCore/rendering/RenderBox.cpp
Log Message:
-----------
[css-values-5 calc-size()] Add support for calc-size() on min-width and
max-width when computing intrinsic contributions
https://bugs.webkit.org/show_bug.cgi?id=324406
<rdar://problem/187639552>
Reviewed by Antti Koivisto.
<!-- the child's min-content width is 7px, border and padding 12px -->
<div style="display: inline-block">
<div style="min-width: calc-size(min-content, size * 2)">…</div>
</div>
The inline-block is 29px. It was 22px, because the floor came from the basis
keyword rather than the
result of the calculation. The box itself already laid out at the right width.
* Source/WebCore/rendering/RenderBox.cpp:
(WebCore::RenderBox::constrainIntrinsicLogicalWidthsByMinMax const):
*
LayoutTests/imported/w3c/web-platform-tests/css/css-values/calc-size/calc-size-width-box-sizing-expected.txt:
Canonical link: https://commits.webkit.org/322432@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications