[webkit-changes] [WebKit/WebKit] 5af6cc: [block-step-sizing] Extra space to distribute for ...
Sammy Gill
noreply at github.com
Tue Dec 3 20:35:40 PST 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 5af6cc050847fdf815c01e26e9a09d1b80286cdb
https://github.com/WebKit/WebKit/commit/5af6cc050847fdf815c01e26e9a09d1b80286cdb
Author: Sammy Gill <sammy.gill at apple.com>
Date: 2024-12-03 (Tue, 03 Dec 2024)
Changed paths:
A LayoutTests/imported/w3c/web-platform-tests/css/css-rhythm/zero-outer-size-rounded-up-to-block-step-size-expected.html
A LayoutTests/imported/w3c/web-platform-tests/css/css-rhythm/zero-outer-size-rounded-up-to-block-step-size.html
M Source/WebCore/rendering/RenderBlockFlow.cpp
Log Message:
-----------
[block-step-sizing] Extra space to distribute for boxes with outer size of 0 is the specified step size.
https://bugs.webkit.org/show_bug.cgi?id=284005
rdar://140879691
Reviewed by Alan Baradlay and Tim Nguyen.
If a box with block-step-sizing has an outer size of 0, then that means
the extra space needed to round it up to the size specified in
block-step-size is just that value. When we compute the extra space
let's check if the outer size is 0 and return the step size value
directly.
* LayoutTests/imported/w3c/web-platform-tests/css/css-rhythm/zero-outer-size-rounded-up-to-block-step-size-expected.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/css/css-rhythm/zero-outer-size-rounded-up-to-block-step-size.html: Added.
* Source/WebCore/rendering/RenderBlockFlow.cpp:
(WebCore::BlockStepSizing::computeExtraSpace):
Canonical link: https://commits.webkit.org/287328@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list