Closed Bug 2079278 Opened 1 month ago Closed 1 month ago

[wpt-sync] Sync PR 63339 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=326527

Categories

(Core :: CSS Parsing and Computation, task, P4)

task

Tracking

()

RESOLVED FIXED
160 Branch
Tracking Status
firefox160 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 63339 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/63339
Details from upstream follow.

Alan Baradlay <zalan@apple.com> wrote:

WebKit export of https://bugs.webkit.org/show_bug.cgi?id=326527

WebKit export from bug: Incorrect box size when padding change is followed by another style change before layout

<pre>
Incorrect box size when padding change is followed by another style change before layout

<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.

WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=326527">https://bugs.webkit.org/show_bug.cgi?id=326527</a>
WebKit-Canonical-Link: <a href="https://commits.webkit.org/322929@main">https://commits.webkit.org/322929@main</a>
</pre>

Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core

CI Results

Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 815 tests

Status Summary

Firefox

OK : 24
PASS: 1[GitHub] 2[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 94[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 873[Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 875[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview] 878[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt]
FAIL: 26[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 31[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt] 34[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview] 36[Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]

Chrome

PASS: 1

Safari

FAIL: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 160 Branch
You need to log in before you can comment on or make changes to this bug.