position-area should implicitly apply correct justify-self value
Categories
(Core :: Layout: Positioned, defect)
Tracking
()
People
(Reporter: jakea, Assigned: jfkthame)
Details
(Keywords: dev-doc-complete, Whiteboard: [wptsync upstream] [anchorpositioning:continuation])
Attachments
(5 files)
|
777.89 KB,
video/mp4
|
Details | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
phab-bot
:
approval-mozilla-release+
|
Details | Review |
|
48 bytes,
text/x-phabricator-request
|
phab-bot
:
approval-mozilla-release+
|
Details | Review |
https://codepen.io/jaffathecake/pen/bNVbQyp?editors=1100
Press the button to show the popover. It should not overflow the sides of the viewport.
https://drafts.csswg.org/css-anchor-position-1/#position-area-alignment
| Reporter | ||
Comment 1•2 months ago
|
||
Marking as dev-doc-needed assuming https://github.com/mdn/browser-compat-data/pull/28761 lands and we should mark ourselves as no-longer-partial.
| Assignee | ||
Comment 2•2 months ago
|
||
It looks like we do try to use the appropriate justify-self value (anchor-center) here, but what we fail to do is to treat it as a "safe" alignment by default.
Adding an explicit justify-self: anchor-center to the #footnote element fixes the behavior. But with the initial value of auto, although that gets resolved to anchor-center, the "raw" value being auto means that we skip the alignment fixup here.
A possible fix may be to exempt a resolved value of anchor-center from the condition here, as the "legacy behavior" that code wants to preserve won't be relevant to anchor-positioning anyhow.
| Assignee | ||
Comment 3•2 months ago
|
||
Updated•2 months ago
|
| Assignee | ||
Comment 4•2 months ago
|
||
This fails in current Nightly (without the patch here). It renders as expected in Chrome.
| Assignee | ||
Updated•2 months ago
|
Comment 7•2 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/133b0f2e5db4
https://hg.mozilla.org/mozilla-central/rev/bea6b109a5e4
Updated•2 months ago
|
Updated•2 months ago
|
Updated•1 month ago
|
Comment 9•1 month ago
|
||
Original Revision: https://phabricator.services.mozilla.com/D277892
Updated•1 month ago
|
Comment 10•1 month ago
|
||
This fails in current Nightly (without the patch here). It renders as expected in Chrome.
Original Revision: https://phabricator.services.mozilla.com/D277893
Updated•1 month ago
|
Comment 11•1 month ago
|
||
Related issues and pull requests
Updated•1 month ago
|
Updated•1 month ago
|
Updated•1 month ago
|
Comment 12•1 month ago
|
||
| uplift | ||
Description
•