← Back to release summary

Rename position-try-options to position-try-fallbacks

Category
CSS
Type
Chromium catches up
Status
Enabled by default (Chrome 128)
Intent stage
None

Summary

The CSSWG resolved to rename this property, because "fallbacks" more accurately describes what this property controls. The word "options" is a bit deceiving, since the styles outside of `position-try` blocks will be tested first, and if they result in a layout that fits within the containing block, none of the "options" will get used. So "fallbacks" is a better word to describe this behavior. https://github.com/w3c/csswg-drafts/issues/10395#issuecomment-2192127524 One note for developers: there is a `position-try` shorthand (see https://drafts.csswg.org/css-anchor-position-1/#position-try-prop) that can be used to help this migration. If you set `position-try` instead of `position-try-options` *or* `position-try-fallbacks`, the shorthand will set the proper longhand before and after this rename.

Motivation

This is a CSSWG resolution, meaning the CSS spec has changed. We need to follow the standardized feature behavior and naming.

Standards & signals

View on chromestatus.com