Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 0a254e20987bbdd6d38b79bbb3b8bed73b5d59bf
https://github.com/WebKit/WebKit/commit/0a254e20987bbdd6d38b79bbb3b8bed73b5d59bf
Author: Alan Baradlay <[email protected]>
Date: 2026-10-06 (Tue, 06 Oct 2026)
Changed paths:
A
LayoutTests/imported/w3c/web-platform-tests/css/CSS2/normal-flow/dynamic-padding-change-with-style-update-before-layout-expected.html
A
LayoutTests/imported/w3c/web-platform-tests/css/CSS2/normal-flow/dynamic-padding-change-with-style-update-before-layout.html
M Source/WebCore/rendering/RenderBlock.cpp
Log Message:
-----------
Incorrect box size when padding change is followed by another style change
before layout
https://bugs.webkit.org/show_bug.cgi?id=326527
<rdar://problem/189319402>
Reviewed by Antti Koivisto.
<div style="width: 200px">
<div id="container"><div style="height: 100px"></div></div>
</div>
<script>
container.style.paddingRight = "100px";
getComputedStyle(container).color;
container.style.color = "blue";
</script>
The child should shrink to 100px. Instead it kept its 200px width.
The second style change calls setShouldForceRelayoutChildren(false) overriding
setShouldForceRelayoutChildren(true) set by the initial (padding) change.
*
LayoutTests/imported/w3c/web-platform-tests/css/CSS2/normal-flow/dynamic-padding-change-with-style-update-before-layout-expected.html:
Added.
*
LayoutTests/imported/w3c/web-platform-tests/css/CSS2/normal-flow/dynamic-padding-change-with-style-update-before-layout.html:
Added.
* Source/WebCore/rendering/RenderBlock.cpp:
(WebCore::RenderBlock::styleDidChange):
Canonical link: https://commits.webkit.org/322929@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications