[wpt-sync] Sync PR 64439 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=319534
Categories
(Core :: Layout: Block and Inline, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox162 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
(Blocks 1 open bug, )
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 64439 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/64439
Details from upstream follow.
Alan Baradlay <zalan@apple.com> wrote:
WebKit export of https://bugs.webkit.org/show_bug.cgi?id=319534
WebKit export from bug: [<!---->css-<!---->align]<!----> Support justify-<!---->self for out-<!---->of-<!---->flow block boxes at their static position
<pre>
[css-align] Support justify-self for out-of-flow boxes at the static position<div style="position: relative; width: 500px"> <div style="position: absolute; justify-self: center">hi</div> </div>The absolutely-positioned inner block has auto insets, so it is placed at its
static position and should be centered within the 500px containing block. Instead
justify-self was ignored: the box stayed pinned to the inline-start edge.When both inline-axis insets are auto, an out-of-flow box is placed at its static
position. Per css-align-3, justify-self then aligns its margin box within the box's
static-position rectangle, resolving against the containing block's writing mode; a
justify-self of auto resolves to the parent's justify-items. (See
<a href="https://drafts.csswg.org/css-align-3/#justify-abspos">https://drafts.csswg.org/css-align-3/#justify-abspos</a> and Appendix A.)Align the box within the remaining inline space at the static position when
justify-self asks for it, gating the behavior with
shouldAlignStaticPositionInInlineAxis() so it applies only where it is both correct
and covered by tests:
- the box's own inline axis (non-orthogonal); orthogonal / block-axis static
positioning keeps the existing static-position path,- justify-self resolves (against the parent) to something other than normal;
normal / auto-resolving-to-normal keeps the box at its static position,- the static-position containing block is a plain block container -- flex and grid
containers place their abspos children with their own alignment rules, and
alignment does not apply to out-of-flow children of inline boxes.Everything else falls back to the existing static-position placement, which already
resolves the correct edge for every writing-mode / direction / orthogonal
combination via the parent-relative static inset. This gating matters because the
existing path anchors to that parent-relative edge while resolveAlignmentShift()
reasons in the containing block's writing mode; the two diverge whenever the
parent's inline direction differs from the containing block's, so aligning
unconditionally mispositioned ordinary (justify-self: auto) abspos boxes. The
block-axis / align-self behavior is unchanged.WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=319534">https://bugs.webkit.org/show_bug.cgi?id=319534</a>
WebKit-Canonical-Link: <a href="https://commits.webkit.org/317349@main">https://commits.webkit.org/317349@main</a>
</pre>
| Assignee | ||
Updated•18 days ago
|
| Assignee | ||
Updated•14 days ago
|
| Assignee | ||
Updated•14 days ago
|
| Assignee | ||
Comment 1•14 days ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=116775
| Assignee | ||
Comment 2•14 days ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 88 tests and 8 subtests
Status Summary
Firefox
OK : 4[GitHub] 69[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, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS: 24[GitHub] 1084[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 1095[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, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL: 32[GitHub] 58[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 66[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, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
Chrome
OK : 4
PASS: 52
FAIL: 4
Safari
OK : 4
PASS: 56
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
Firefox-only Failures
- /css/css-align/abspos/justify-self-static-position-htb-ltr-htb.html [wpt.fyi]
- .item 2:
FAIL - .item 3:
FAIL - .item 5:
FAIL - .item 7:
FAIL - .item 9:
FAIL - .item 10:
FAIL - .item 11:
FAIL - .item 14:
FAIL
- .item 2:
- /css/css-align/abspos/justify-self-static-position-htb-rtl-htb.html [wpt.fyi]
- .item 2:
FAIL - .item 3:
FAIL - .item 4:
FAIL - .item 9:
FAIL - .item 10:
FAIL - .item 12:
FAIL
- .item 2:
- /css/css-align/abspos/justify-self-static-position-vlr-ltr-vlr.html [wpt.fyi]
- .item 2:
FAIL - .item 3:
FAIL - .item 5:
FAIL - .item 7:
FAIL - .item 9:
FAIL - .item 10:
FAIL - .item 11:
FAIL - .item 14:
FAIL
- .item 2:
- /css/css-align/abspos/justify-self-static-position-vrl-ltr-vrl.html [wpt.fyi]
- .item 2:
FAIL - .item 3:
FAIL - .item 5:
FAIL - .item 7:
FAIL - .item 9:
FAIL - .item 10:
FAIL - .item 11:
FAIL - .item 14:
FAIL
- .item 2:
New Tests That Don't Pass
- /css/css-align/abspos/align-self-static-position-001.html [wpt.fyi]:
FAIL - /css/css-align/abspos/align-self-static-position-002.html [wpt.fyi]:
FAIL - /css/css-align/abspos/align-self-static-position-003.html [wpt.fyi]:
FAIL - /css/css-align/abspos/align-self-static-position-004.html [wpt.fyi]:
FAIL - /css/css-align/abspos/align-self-static-position-006.html [wpt.fyi]:
FAIL - /css/css-align/abspos/align-self-static-position-007.html [wpt.fyi]:
FAIL - /css/css-align/abspos/align-self-static-position-008.html [wpt.fyi]:
FAIL - /css/css-align/abspos/justify-self-static-position-001.html [wpt.fyi]:
FAIL - /css/css-align/abspos/default-overflow-with-scroll.html [wpt.fyi]
- .container 1:
FAIL - .container 4:
FAIL
- .container 1:
- /css/css-align/abspos/justify-self-static-position-htb-ltr-htb.html [wpt.fyi]
- .item 2:
FAIL(Chrome:PASS, Safari:PASS) - .item 3:
FAIL(Chrome:PASS, Safari:PASS) - .item 5:
FAIL(Chrome:PASS, Safari:PASS) - .item 7:
FAIL(Chrome:PASS, Safari:PASS) - .item 9:
FAIL(Chrome:PASS, Safari:PASS) - .item 10:
FAIL(Chrome:PASS, Safari:PASS) - .item 11:
FAIL(Chrome:PASS, Safari:PASS) - .item 14:
FAIL(Chrome:PASS, Safari:PASS)
- .item 2:
- /css/css-align/abspos/justify-self-static-position-htb-rtl-htb.html [wpt.fyi]
- .item 2:
FAIL(Chrome:PASS, Safari:PASS) - .item 3:
FAIL(Chrome:PASS, Safari:PASS) - .item 4:
FAIL(Chrome:PASS, Safari:PASS) - .item 6:
FAIL(Chrome:FAIL, Safari:PASS) - .item 9:
FAIL(Chrome:PASS, Safari:PASS) - .item 10:
FAIL(Chrome:PASS, Safari:PASS) - .item 12:
FAIL(Chrome:PASS, Safari:PASS) - .item 13:
FAIL(Chrome:FAIL, Safari:PASS)
- .item 2:
- /css/css-align/abspos/justify-self-static-position-vlr-ltr-vlr.html [wpt.fyi]
- .item 2:
FAIL(Chrome:PASS, Safari:PASS) - .item 3:
FAIL(Chrome:PASS, Safari:PASS) - .item 5:
FAIL(Chrome:PASS, Safari:PASS) - .item 7:
FAIL(Chrome:PASS, Safari:PASS) - .item 9:
FAIL(Chrome:PASS, Safari:PASS) - .item 10:
FAIL(Chrome:PASS, Safari:PASS) - .item 11:
FAIL(Chrome:PASS, Safari:PASS) - .item 14:
FAIL(Chrome:PASS, Safari:PASS)
- .item 2:
- /css/css-align/abspos/justify-self-static-position-vrl-ltr-vrl.html [wpt.fyi]
- .item 2:
FAIL(Chrome:PASS, Safari:PASS) - .item 3:
FAIL(Chrome:PASS, Safari:PASS) - .item 5:
FAIL(Chrome:PASS, Safari:PASS) - .item 7:
FAIL(Chrome:PASS, Safari:PASS) - .item 9:
FAIL(Chrome:PASS, Safari:PASS) - .item 10:
FAIL(Chrome:PASS, Safari:PASS) - .item 11:
FAIL(Chrome:PASS, Safari:PASS) - .item 14:
FAIL(Chrome:PASS, Safari:PASS)
- .item 2:
- /css/css-align/abspos/stretch-intrinsic-size-htb-htb.html [wpt.fyi]
- .item 8:
FAIL - .item 10:
FAIL - .item 11:
FAIL - .item 12:
FAIL
- .item 8:
- /css/css-align/abspos/stretch-intrinsic-size-htb-vrl.html [wpt.fyi]
- .item 8:
FAIL - .item 10:
FAIL - .item 11:
FAIL - .item 12:
FAIL
- .item 8:
- /css/css-align/abspos/stretch-intrinsic-size-vrl-htb.html [wpt.fyi]
- .item 8:
FAIL - .item 10:
FAIL - .item 11:
FAIL - .item 12:
FAIL
- .item 8:
- /css/css-align/abspos/stretch-intrinsic-size-vrl-vrl.html [wpt.fyi]
- .item 8:
FAIL - .item 10:
FAIL - .item 11:
FAIL - .item 12:
FAIL
- .item 8:
- /css/css-align/abspos/table-align-self-stretch.html [wpt.fyi]
- .item 1:
FAIL - .item 3:
FAIL - .item 5:
FAIL - .item 7:
FAIL
- .item 1:
- /css/css-align/abspos/table-justify-self-stretch.html [wpt.fyi]
- .item 1:
FAIL - .item 3:
FAIL - .item 5:
FAIL - .item 7:
FAIL
- .item 1:
Comment 4•10 days ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/6f4453e6c534
https://hg.mozilla.org/mozilla-central/rev/13ba474321fa
Comment 5•10 days ago
|
||
| bugherder | ||
Description
•