[wpt-sync] Sync PR 64243 - Fix intrinsic widths under-invalidation for orthogonal roots
Categories
(Core :: Layout, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox162 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 64243 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/64243
Details from upstream follow.
Philip Rogers <pdr@chromium.org> wrote:
Fix intrinsic widths under-invalidation for orthogonal roots
An orthogonal flow root's block-size (determined by layout) contributes
to its container's inline-size. For orthogonal flow roots,
BlockNode::ComputeMinMaxSizes()lays out the orthogonal subtree to
determine its block-size rather than computing min/max sizes, without
clearingIntrinsicLogicalWidthsDirty()on blocks within the
orthogonal subtree (when their inline-size is definite or stretched).
BecauseIntrinsicLogicalWidthsDirty()is never cleared on those
blocks,InvalidateContainerIntrinsicLogicalWidths()stops early
without invalidating ancestors of the orthogonal root.
ShouldInvalidateBeyond()cannot be used here because normal blocks
nested inside the orthogonal root also remain dirty and have the same
writing-mode as the orthogonal root.When marking the container chain for full layout in
MarkContainerChainForLayout()outsidePerformLayout(), call
InvalidateContainerIntrinsicLogicalWidths()when crossing an
orthogonal writing-mode boundary (skipping this during layout so
interleaved style recalc such as container queries does not invalidate
ancestors already in layout). Also update
MarkParentForSpannerOrOutOfFlowPositionedChange()to use
SetChildNeedsLayout()(with defaultkMarkContainerChain) rather
thankMarkOnlyThisso thatMarkContainerChainForLayout()runs and
invalidates intrinsic widths when crossing an orthogonal writing-mode
boundary.This patch also deflakes
orthogonal-parent-shrink-to-fit-001.html.Bug: 568337130
Change-Id: I5612dbf8233ffe000510f5e323686d5293b76eda
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8522118
Auto-Submit: Philip Rogers \<pdr@chromium.org>
Reviewed-by: Ian Kilpatrick \<ikilpatrick@chromium.org>
Commit-Queue: Philip Rogers \<pdr@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1733472}
| Assignee | ||
Updated•17 days ago
|
| Assignee | ||
Comment 1•17 days ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=119399
| Assignee | ||
Comment 2•17 days ago
|
||
CI Results
Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 1256 tests and 3 subtests
Status Summary
Firefox
OK : 84
PASS: 6[GitHub] 13[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 395[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 1526[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] 1529[Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 1533[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt]
FAIL: 27[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 48[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt] 50[Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 55[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]
Chrome
PASS: 3
FAIL: 3
Safari
PASS: 3
FAIL: 3
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /css/css-writing-modes/abs-pos-non-replaced-icb-vlr-021.xht [wpt.fyi]:
PASS[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,Gecko-linux2404-64-debug,Gecko-linux2404-64-opt],SKIP[Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt] - /css/css-writing-modes/abs-pos-non-replaced-icb-vrl-020.xht [wpt.fyi]:
PASS[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,Gecko-linux2404-64-debug,Gecko-linux2404-64-opt],SKIP[Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt] - /css/css-writing-modes/ch-units-vrl-007.html [wpt.fyi]:
FAIL - /css/css-writing-modes/ch-units-vrl-008.html [wpt.fyi]:
FAIL - /css/css-writing-modes/full-width-003.html [wpt.fyi]:
FAIL - /css/css-writing-modes/mongolian-orientation-001.html [wpt.fyi]:
FAIL[Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt],PASS[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,Gecko-linux2404-64-debug,Gecko-linux2404-64-opt] - /css/css-writing-modes/mongolian-orientation-002.html [wpt.fyi]:
FAIL[Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt],PASS[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,Gecko-linux2404-64-debug,Gecko-linux2404-64-opt] - /css/css-writing-modes/sizing-orthog-htb-in-vrl-001.xht [wpt.fyi]:
FAIL[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],PASS[Gecko-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt] - /css/css-writing-modes/sizing-orthog-htb-in-vrl-004.xht [wpt.fyi]:
FAIL[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],PASS[Gecko-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt] - /css/css-writing-modes/tcy-white-space-processing-001.html [wpt.fyi]:
FAIL - /css/css-writing-modes/text-combine-upright-value-all-001.html [wpt.fyi]:
FAIL - /css/css-writing-modes/text-combine-upright-value-digits2-001.html [wpt.fyi]:
FAIL - /css/css-writing-modes/text-combine-upright-value-digits2-002.html [wpt.fyi]:
FAIL - /css/css-writing-modes/text-combine-upright-value-digits3-001.html [wpt.fyi]:
FAIL - /css/css-writing-modes/text-combine-upright-value-digits3-002.html [wpt.fyi]:
FAIL - /css/css-writing-modes/text-combine-upright-value-digits4-001.html [wpt.fyi]:
FAIL - /css/css-writing-modes/text-combine-upright-value-digits4-002.html [wpt.fyi]:
FAIL - /css/css-writing-modes/text-shadow-sideways-001.html [wpt.fyi]:
FAIL - /css/css-writing-modes/vertical-alignment-vlr-023.xht [wpt.fyi]:
FAIL - /css/css-writing-modes/vertical-alignment-vlr-025.xht [wpt.fyi]:
FAIL - /css/css-writing-modes/vertical-alignment-vrl-022.xht [wpt.fyi]:
FAIL - /css/css-writing-modes/vertical-alignment-vrl-024.xht [wpt.fyi]:
FAIL - /css/css-writing-modes/wm-propagation-001.html [wpt.fyi]:
FAIL - /css/css-writing-modes/wm-propagation-body-042.html [wpt.fyi]:
FAIL - /css/css-writing-modes/wm-propagation-body-047.html [wpt.fyi]:
FAIL - /css/css-writing-modes/wm-propagation-body-049.html [wpt.fyi]:
FAIL - /css/css-writing-modes/wm-propagation-body-054.html [wpt.fyi]:
FAIL - /css/css-writing-modes/orthogonal-block-in-inline-line-height-001.html [wpt.fyi]
- Text after an empty orthogonal block level box stays on the first line (nested):
FAIL - Text after an empty orthogonal block level box stays on the first line (sibling):
FAIL
- Text after an empty orthogonal block level box stays on the first line (nested):
- /css/css-writing-modes/text-combine-upright-parsing-digits-001.html [wpt.fyi]
- Computed value for
text-combine-upright: digitsisdigits 2:FAIL - Computed value for
text-combine-upright: digits 2isdigits 2:FAIL - Computed value for
text-combine-upright: digits 3isdigits 3:FAIL - Computed value for
text-combine-upright: digits 4isdigits 4:FAIL - Computed value for
text-combine-upright: digits +2isdigits 2:FAIL - Computed value for
text-combine-upright: digits+3isdigits 3:FAIL - Computed value for
text-combine-upright: digits[TAB]4isdigits 4:FAIL - Computed value for
text-combine-upright: digits[LF]2isdigits 2:FAIL - Computed value for
text-combine-upright: digits [TAB]3isdigits 3:FAIL - Computed value for
text-combine-upright: digits[TAB][LF]4isdigits 4:FAIL
- Computed value for
- /css/css-writing-modes/text-combine-upright-parsing-digits-002.html [wpt.fyi]
- Computed value for
text-combine-upright: digits calc(1 + 1)isdigits 2:FAIL - Computed value for
text-combine-upright: digits calc(1 + 1 + 1)isdigits 3:FAIL - Computed value for
text-combine-upright: digits calc(2 + 2)isdigits 4:FAIL - Computed value for
text-combine-upright: digits calc(4 - 2)isdigits 2:FAIL - Computed value for
text-combine-upright: digits calc(6 - 3)isdigits 3:FAIL - Computed value for
text-combine-upright: digits calc(7 - 1 - 2)isdigits 4:FAIL - Computed value for
text-combine-upright: digits calc(2 * 1)isdigits 2:FAIL - Computed value for
text-combine-upright: digits calc(3 * 1)isdigits 3:FAIL - Computed value for
text-combine-upright: digits calc(2 * 2 * 1)isdigits 4:FAIL - Computed value for
text-combine-upright: digits calc(4 / 2)isdigits 2:FAIL - Computed value for
text-combine-upright: digits calc(6 / 2)isdigits 3:FAIL - Computed value for
text-combine-upright: digits calc(24 / 3 / 2)isdigits 4:FAIL
- Computed value for
- /css/css-writing-modes/forms/checkbox-switch-input-computed-style.tentative.html [wpt.fyi]
- horizontal-input block size should match height and inline size should match width:
FAIL - vertical-lr-input block size should match width and inline size should match height:
FAIL - vertical-rl-input block size should match width and inline size should match height:
FAIL
- horizontal-input block size should match height and inline size should match width:
- /css/css-writing-modes/forms/select-multiple-options-visual-order.html [wpt.fyi]
- select[multiple][style="writing-mode: horizontal-tb"] has visually correct option order:
FAIL[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],PASS[Gecko-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-32-25h2-debug,Gecko-windows11-32-25h2-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt] - select[multiple][style="writing-mode: vertical-lr"] has visually correct option order:
FAIL[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],PASS[Gecko-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-32-25h2-debug,Gecko-windows11-32-25h2-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt] - select[multiple][style="writing-mode: vertical-rl"] has visually correct option order:
FAIL[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],PASS[Gecko-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-32-25h2-debug,Gecko-windows11-32-25h2-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt] - select[multiple][style="writing-mode: sideways-lr"] has visually correct option order:
FAIL[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],PASS[Gecko-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-32-25h2-debug,Gecko-windows11-32-25h2-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt] - select[multiple][style="writing-mode: sideways-rl"] has visually correct option order:
FAIL[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],PASS[Gecko-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-32-25h2-debug,Gecko-windows11-32-25h2-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt]
- select[multiple][style="writing-mode: horizontal-tb"] has visually correct option order:
Tests Disabled in Gecko Infrastructure
- /css/css-writing-modes/abs-pos-non-replaced-icb-vlr-021.xht [wpt.fyi]:
PASS[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,Gecko-linux2404-64-debug,Gecko-linux2404-64-opt],SKIP[Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt] - /css/css-writing-modes/abs-pos-non-replaced-icb-vrl-020.xht [wpt.fyi]:
PASS[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,Gecko-linux2404-64-debug,Gecko-linux2404-64-opt],SKIP[Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt]
Comment 4•12 days ago
|
||
| bugherder | ||
Description
•