Skip to content

Enable the remaining anchor positioning properties behind a pref - #512

Merged
Loirooriol merged 1 commit into
servo:mainfrom
josefguenther:feat/anchor-positioning-properties
Nov 6, 2026
Merged

Loirooriol merged 1 commit into
servo:mainfrom
josefguenther:feat/anchor-positioning-properties

Conversation

@josefguenther

Copy link
Copy Markdown
Contributor

This enables the anchor positioning properties that are still Gecko-only: anchor-name, anchor-scope, position-anchor, position-try-order, position-visibility and the position-try shorthand. They go behind the pref #492 already uses for position-area and position-try-fallbacks (layout.css.anchor-positioning.enabled), so the whole feature sits behind one pref, as it does in Gecko.

They already compile for Servo, so apart from the gates the only change is removing a Gecko-only cfg on the position-try shorthand. Nothing changes for Gecko.

anchor-name, anchor-scope, position-anchor, position-try-order,
position-visibility and the position-try shorthand were Gecko-only. They
already compile for Servo, so put them behind the pref that already gates
position-area and position-try-fallbacks.

Signed-off-by: Josef Guenther <[email protected]>
@Loirooriol
Loirooriol added this pull request to the merge queue Nov 6, 2026
Merged via the queue into servo:main with commit d48bdab Nov 6, 2026
6 checks passed
Loirooriol pushed a commit that referenced this pull request Nov 9, 2026
This enables the anchor positioning properties that are still
Gecko-only: anchor-name, anchor-scope, position-anchor,
position-try-order, position-visibility and the position-try shorthand.
They go behind the pref #492 already uses for position-area and
position-try-fallbacks (`layout.css.anchor-positioning.enabled`), so the
whole feature sits behind one pref, as it does in Gecko.

They already compile for Servo, so apart from the gates the only change
is removing a Gecko-only cfg on the position-try shorthand. Nothing
changes for Gecko.

Signed-off-by: Josef Guenther <[email protected]>
lando-worker Bot pushed a commit to mozilla-firefox/firefox that referenced this pull request Nov 11, 2026
…nd a pref. r=firefox-style-system-reviewers,emilio

This enables the anchor positioning properties that are still
Gecko-only: anchor-name, anchor-scope, position-anchor,
position-try-order, position-visibility and the position-try shorthand.
They go behind the pref servo/stylo#492 already
uses for position-area and position-try-fallbacks
(`layout.css.anchor-positioning.enabled`), so the whole feature sits
behind one pref, as it does in Gecko.

They already compile for Servo, so apart from the gates the only change
is removing a Gecko-only cfg on the position-try shorthand. Nothing
changes for Gecko.

Imports servo/stylo#512

Differential Revision: https://phabricator.services.mozilla.com/D341406
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Nov 11, 2026
…nd a pref. r=firefox-style-system-reviewers,emilio

This enables the anchor positioning properties that are still
Gecko-only: anchor-name, anchor-scope, position-anchor,
position-try-order, position-visibility and the position-try shorthand.
They go behind the pref servo/stylo#492 already
uses for position-area and position-try-fallbacks
(`layout.css.anchor-positioning.enabled`), so the whole feature sits
behind one pref, as it does in Gecko.

They already compile for Servo, so apart from the gates the only change
is removing a Gecko-only cfg on the position-try shorthand. Nothing
changes for Gecko.

Imports servo/stylo#512

Differential Revision: https://phabricator.services.mozilla.com/D341406

UltraBlame original commit: d0169ad35cc3f042395e28e70096c8572121ce50
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Nov 11, 2026
…nd a pref. r=firefox-style-system-reviewers,emilio

This enables the anchor positioning properties that are still
Gecko-only: anchor-name, anchor-scope, position-anchor,
position-try-order, position-visibility and the position-try shorthand.
They go behind the pref servo/stylo#492 already
uses for position-area and position-try-fallbacks
(`layout.css.anchor-positioning.enabled`), so the whole feature sits
behind one pref, as it does in Gecko.

They already compile for Servo, so apart from the gates the only change
is removing a Gecko-only cfg on the position-try shorthand. Nothing
changes for Gecko.

Imports servo/stylo#512

Differential Revision: https://phabricator.services.mozilla.com/D341406

UltraBlame original commit: d0169ad35cc3f042395e28e70096c8572121ce50
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Nov 11, 2026
…nd a pref. r=firefox-style-system-reviewers,emilio

This enables the anchor positioning properties that are still
Gecko-only: anchor-name, anchor-scope, position-anchor,
position-try-order, position-visibility and the position-try shorthand.
They go behind the pref servo/stylo#492 already
uses for position-area and position-try-fallbacks
(`layout.css.anchor-positioning.enabled`), so the whole feature sits
behind one pref, as it does in Gecko.

They already compile for Servo, so apart from the gates the only change
is removing a Gecko-only cfg on the position-try shorthand. Nothing
changes for Gecko.

Imports servo/stylo#512

Differential Revision: https://phabricator.services.mozilla.com/D341406

UltraBlame original commit: d0169ad35cc3f042395e28e70096c8572121ce50
github-actions Bot pushed a commit that referenced this pull request Nov 12, 2026
…nd a pref. r=firefox-style-system-reviewers,emilio

This enables the anchor positioning properties that are still
Gecko-only: anchor-name, anchor-scope, position-anchor,
position-try-order, position-visibility and the position-try shorthand.
They go behind the pref #492 already
uses for position-area and position-try-fallbacks
(`layout.css.anchor-positioning.enabled`), so the whole feature sits
behind one pref, as it does in Gecko.

They already compile for Servo, so apart from the gates the only change
is removing a Gecko-only cfg on the position-try shorthand. Nothing
changes for Gecko.

Imports #512

Differential Revision: https://phabricator.services.mozilla.com/D341406
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants