Skip to content

Split layout.unimplemented into individual prefs. Align pref names with Gecko convention. - #492

Merged
nicoburns merged 2 commits into
servo:mainfrom
nicoburns:split-layout-unimplemented
Oct 14, 2026
Merged

nicoburns merged 2 commits into
servo:mainfrom
nicoburns:split-layout-unimplemented

Conversation

@nicoburns

@nicoburns nicoburns commented Oct 14, 2026 •

Copy link
Copy Markdown
Collaborator

This PR makes two changes:

  • Splits the layout.unimplemented into individual prefs for groups of related properties
  • Renames some prefs (adds .css to them) to align with Gecko convention (other Servo prefs already followed this).

Servo PR: servo/servo#48915

layout.unimplemented properties moved under existing prefs

Pref Additional properties
layout.css.anchor-positioning.enabled position-area, position-try-fallbacks
layout.css.scroll-driven-animations.enabled animation-timeline, animation-range-start, animation-range-end

layout.unimplemented properties moved under new prefs

Pref Properties affected
layout.css.appearance.enabled appearance
layout.css.backdrop-filter.enabled backdrop-filter
layout.css.contain.enabled contain
layout.css.corner-shape.enabled corner-{top-left,top-right,bottom-right,bottom-left,start-start,start-end,end-start,end-end}-shape, corner-shape, corner-{top,right,bottom,left,block-start,block-end,inline-start,inline-end}-shape
layout.css.counters.enabled counter-increment, counter-reset
layout.css.font-size-adjust.enabled font-size-adjust
layout.css.forced-color-adjust.enabled forced-color-adjust
layout.css.masking.enabled mask-image, mask-position-x, mask-position-y, mask-repeat, mask-size, mask-type, mask-mode, mask-clip, mask-origin, mask-composite, mask, mask-position
layout.css.math-properties.enabled math-depth, math-style
layout.css.motion-path.enabled offset-path
layout.css.overscroll-behavior.enabled overscroll-behavior-{x,y,block,inline}, overscroll-behavior
layout.css.scroll-behavior.enabled scroll-behavior
layout.css.scrollbar-styling.enabled scrollbar-color, scrollbar-width
layout.css.text-decoration-inset.enabled text-decoration-inset
layout.css.text-overflow.enabled text-overflow
layout.css.text-underline.enabled text-underline-offset, text-underline-position
layout.css.view-transitions.enabled view-transition-name, view-transition-class
layout.css.writing-mode.text-orientation.enabled text-orientation
layout.css.zoom.enabled zoom

Renamed prefs

Old pref name New pref name
layout.columns.enabled layout.css.columns.enabled
layout.container-queries.enabled layout.css.container-queries.enabled
layout.variable_fonts.enabled layout.css.font-variations.enabled
layout.writing-mode.enabled layout.css.writing-mode.enabled
layout.writing-mode.sideways.enabled layout.css.writing-mode.sideways.enabled
layout.flexbox.balance layout.css.flexbox-balance.enabled

@nicoburns nicoburns changed the title Split layout.unimplemented into individual pref. Align pref names with Gecko convention. Split layout.unimplemented into individual prefs. Align pref names with Gecko convention. Oct 14, 2026
@nicoburns
nicoburns force-pushed the split-layout-unimplemented branch from 9dd4114 to 91b568a Compare October 14, 2026 19:30
@nicoburns
nicoburns requested a review from Loirooriol October 14, 2026 20:11
Comment thread style/properties/longhands.toml Resolved
Comment thread style/properties/longhands.toml Resolved
@nicoburns
nicoburns force-pushed the split-layout-unimplemented branch from 91b568a to 85cad2f Compare October 14, 2026 22:01
@nicoburns
nicoburns added this pull request to the merge queue Oct 14, 2026
Merged via the queue into servo:main with commit 09fcaff Oct 14, 2026
5 checks passed
@nicoburns
nicoburns deleted the split-layout-unimplemented branch October 14, 2026 22:29
opensource-fork-sync Bot pushed a commit to cla7aye15I4nd/opensource-servo__servo that referenced this pull request Oct 14, 2026
Servo PR for:

- servo/stylo#492

Which replaces the `layout.unimplemented` prefs with individual prefs +
renames a few prefs for consistency.

Servo-side changes:

- Servo pref renames to match Stylo pref renames
- Remove servo `layout_unimplemented` pref
- Add `layout_css_backdrop_filter_enabled` pref (it's used in a test)
- New prefs that would be unused are *not* added on the servo side.
Servo can add as and when it wants to actual enable them.
- Update docs for servoshell's `-Z` CLI argument. Previously some
now-removed prefs were documented as examples. But this argument doesn't
accept prefs as value anyway! Updated with values that are valid.

Testing: not needed, no behavior change

Signed-off-by: Nico Burns <[email protected]>
RichardTjokroutomo pushed a commit to RichardTjokroutomo/stylo that referenced this pull request Nov 7, 2026
…vo#512)

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#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]>
Loirooriol pushed a commit that referenced this pull request Nov 9, 2026
…with Gecko convention. (#492)

This PR makes two changes:

- Splits the `layout.unimplemented` into individual prefs for groups of
related properties
- Renames some prefs (adds `.css` to them) to align with Gecko
convention (other Servo prefs already followed this).

Servo PR: servo/servo#48915

 | Pref | Additional properties |
 |---|---|
| `layout.css.anchor-positioning.enabled` | `position-area`,
`position-try-fallbacks` |
| `layout.css.scroll-driven-animations.enabled` | `animation-timeline`,
`animation-range-start`, `animation-range-end` |

 ### `layout.unimplemented` properties moved under new prefs

 | Pref | Properties affected |
 |---|---|
 | `layout.css.appearance.enabled` | `appearance` |
 | `layout.css.backdrop-filter.enabled` | `backdrop-filter` |
 | `layout.css.contain.enabled` | `contain` |
| `layout.css.corner-shape.enabled` |
`corner-{top-left,top-right,bottom-right,bottom-left,start-start,start-end,end-start,end-end}-shape`,
`corner-shape`,
`corner-{top,right,bottom,left,block-start,block-end,inline-start,inline-end}-shape`
|
| `layout.css.counters.enabled` | `counter-increment`, `counter-reset` |
 | `layout.css.font-size-adjust.enabled` | `font-size-adjust` |
 | `layout.css.forced-color-adjust.enabled` | `forced-color-adjust` |
| `layout.css.masking.enabled` | `mask-image`, `mask-position-x`,
`mask-position-y`, `mask-repeat`, `mask-size`, `mask-type`, `mask-mode`,
`mask-clip`, `mask-origin`, `mask-composite`, `mask`, `mask-position` |
 | `layout.css.math-properties.enabled` | `math-depth`, `math-style` |
 | `layout.css.motion-path.enabled` | `offset-path` |
| `layout.css.overscroll-behavior.enabled` |
`overscroll-behavior-{x,y,block,inline}`, `overscroll-behavior` |
 | `layout.css.scroll-behavior.enabled` | `scroll-behavior` |
| `layout.css.scrollbar-styling.enabled` | `scrollbar-color`,
`scrollbar-width` |
| `layout.css.text-decoration-inset.enabled` | `text-decoration-inset` |
 | `layout.css.text-overflow.enabled` | `text-overflow` |
| `layout.css.text-underline.enabled` | `text-underline-offset`,
`text-underline-position` |
| `layout.css.view-transitions.enabled` | `view-transition-name`,
`view-transition-class` |
| `layout.css.writing-mode.text-orientation.enabled` |
`text-orientation` |
 | `layout.css.zoom.enabled` | `zoom` |

  ### Renamed prefs

 | Old pref name | New pref name |
 | :--- | :--- |
 | `layout.columns.enabled` | `layout.css.columns.enabled` |
| `layout.container-queries.enabled` |
`layout.css.container-queries.enabled` |
| `layout.variable_fonts.enabled` | `layout.css.font-variations.enabled`
|
 | `layout.writing-mode.enabled` | `layout.css.writing-mode.enabled` |
| `layout.writing-mode.sideways.enabled` |
`layout.css.writing-mode.sideways.enabled` |
 | `layout.flexbox.balance` | `layout.css.flexbox-balance.enabled` |
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
…gn pref names with Gecko convention. r=firefox-style-system-reviewers,emilio

This PR makes two changes:

- Splits the `layout.unimplemented` into individual prefs for groups of
related properties
- Renames some prefs (adds `.css` to them) to align with Gecko
convention (other Servo prefs already followed this).

Imports servo/stylo#492

Differential Revision: https://phabricator.services.mozilla.com/D341391
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
…gn pref names with Gecko convention. r=firefox-style-system-reviewers,emilio

This PR makes two changes:

- Splits the `layout.unimplemented` into individual prefs for groups of
related properties
- Renames some prefs (adds `.css` to them) to align with Gecko
convention (other Servo prefs already followed this).

Imports servo/stylo#492

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

UltraBlame original commit: 63a1648533d1060ec7c1989cb53b0ea7a5a2c89a
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
…gn pref names with Gecko convention. r=firefox-style-system-reviewers,emilio

This PR makes two changes:

- Splits the `layout.unimplemented` into individual prefs for groups of
related properties
- Renames some prefs (adds `.css` to them) to align with Gecko
convention (other Servo prefs already followed this).

Imports servo/stylo#492

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

UltraBlame original commit: 63a1648533d1060ec7c1989cb53b0ea7a5a2c89a
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
…gn pref names with Gecko convention. r=firefox-style-system-reviewers,emilio

This PR makes two changes:

- Splits the `layout.unimplemented` into individual prefs for groups of
related properties
- Renames some prefs (adds `.css` to them) to align with Gecko
convention (other Servo prefs already followed this).

Imports servo/stylo#492

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

UltraBlame original commit: 63a1648533d1060ec7c1989cb53b0ea7a5a2c89a
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
…gn pref names with Gecko convention. r=firefox-style-system-reviewers,emilio

This PR makes two changes:

- Splits the `layout.unimplemented` into individual prefs for groups of
related properties
- Renames some prefs (adds `.css` to them) to align with Gecko
convention (other Servo prefs already followed this).

Imports #492

Differential Revision: https://phabricator.services.mozilla.com/D341391
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
aphrody-dev pushed a commit to aphrody-labs/browser that referenced this pull request Nov 16, 2026
Servo PR for:

- servo/stylo#492

Which replaces the `layout.unimplemented` prefs with individual prefs +
renames a few prefs for consistency.

Servo-side changes:

- Servo pref renames to match Stylo pref renames
- Remove servo `layout_unimplemented` pref
- Add `layout_css_backdrop_filter_enabled` pref (it's used in a test)
- New prefs that would be unused are *not* added on the servo side.
Servo can add as and when it wants to actual enable them.
- Update docs for servoshell's `-Z` CLI argument. Previously some
now-removed prefs were documented as examples. But this argument doesn't
accept prefs as value anyway! Updated with values that are valid.

Testing: not needed, no behavior change

Signed-off-by: Nico Burns <[email protected]>
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