Closed Bug 1988225 Opened 2 months ago Closed 1 hour ago

Enable anchor positioning pref (layout.css.anchor-positioning.enabled) by default on all channels

Categories

(Core :: CSS Parsing and Computation, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
147 Branch
Tracking Status
relnote-firefox --- 147+
firefox147 --- fixed

People

(Reporter: dholbert, Assigned: jwatt)

References

(Depends on 3 open bugs, Blocks 3 open bugs)

Details

(Keywords: dev-doc-needed, Whiteboard: [anchorpositioning:m2])

Attachments

(1 file)

Followup to bug 1988224 - this bug tracks letting the anchor positioning pref ride the trains, removing any nightly/early-beta-only guard that we might initially impose in a tentative-enabling in bug 1988224.

(Hypothetically if we decide to go straight to fully-enabled without any sort of initial nightly-only guard, then we can dupe bug 1988224 together with this bug here.)

(We can use the dependency field to track [some of] the work that must happen before we can do this. Though also I think this work is tracked via [anchorpositioning:m whiteboard-field-contents, and maybe it's not worth trying to get those milestones to be perfectly reflected/mirrored in the dependency field of this bug.)

Once the pref is flipped, this the related BCD needs to be updated and it should be mentioned in the release notes on MDN and the general release notes.

[Why is this notable]: Feature CSS authors were requesting for a long time and part of Interop 2025.
[Affects Firefox for Android]: yes
[Suggested wording]: Support for CSS anchor positioning was added, which allows to tether elements together. The anchor-positioned elements can then have their size and position set relative to the size and location of the anchor elements to which they are bound.
[Links (documentation, blog post, etc)]:
https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_anchor_positioning
https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_anchor_positioning/Using

Keywords: dev-doc-needed

Currently, the following two scenarios do not function correctly in Firefox Nightly(145.0a1 (2025-10-08) ). I hope to fix them before release.

(In reply to 一丝 from comment #2)

Currently, the following two scenarios do not function correctly in Firefox Nightly(145.0a1 (2025-10-08) ). I hope to fix them before release.

Bug 1993692 filed

::-webkit-slider-thumb is non-standard - We have ::-moz-range-thumb, but that doesn't solve it.

Bug 1993695 filed re: potentially aliasing them, bug 1993699 filed re: allowing it to be anchored against

Depends on: 1987964, 1989292, 1987965
Depends on: 1999746
Blocks: 2000206
Blocks: 2000211
Whiteboard: [anchorpositioning:triage]
No longer depends on: 1999746
Whiteboard: [anchorpositioning:triage] → [anchorpositioning:m2]
Depends on: 1999954

Bug 1979593 is responsible for a bunch of WPT failures and is one of the main things pushing down the Interop 2025 score. So I wonder if that should be fixed before shipping.

Sebastian

Flags: needinfo?(emilio)

I think we should fix the test. The code works, but the test relied on some interleaving behavior that we decided not to include in interop. I sent a fix.

Flags: needinfo?(emilio)
Assignee: nobody → mozmail
Status: NEW → ASSIGNED
Attachment #9529895 - Attachment description: WIP: Bug 1988225 - Enable anchor positioning pref on all channels. → Bug 1988225. Enable anchor positioning pref on all channels. r=emilio
Pushed by jwatt@jwatt.org: https://github.com/mozilla-firefox/firefox/commit/e9854d00f8c7 https://hg.mozilla.org/integration/autoland/rev/cd4251648976 Enable anchor positioning pref on all channels. r=layout-anchor-positioning-reviewers,webidl,emilio
Status: ASSIGNED → RESOLVED
Closed: 1 hour ago
Resolution: --- → FIXED
Target Milestone: --- → 147 Branch

Added to the Fx147 relnotes.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: