monks/position_try_fallbacks
The position-try-fallbacks CSS property enables you to specify a list of one or more alternative position try fallback options for anchor-positioned elements to be placed relative to their associated anchor elements. When the element would otherwise overflow its inset-modified containing block, the browser will try placing the positioned element in these different fallback positions, in the order provided, until it finds a value that stops it from overflowing its container or the viewport.
The {{cssxref(“position-try”)}} shorthand property can be used to specify {{cssxref(“position-try-order”)}} and
position-try-fallbacksvalues in a single declaration.
This property was originally named and supported in Chromium browsers as
position-try-options, with the same property values. Untilposition-try-fallbacksis supported, use the {{cssxref(“position-try”)}} shorthand instead.
Values
pub const block_start: #(String, String)
block-start value of position-try-fallbacks
pub const flip_block: #(String, String)
- : Flips the element's position along the block axis.
pub const flip_inline: #(String, String)
- : Flips the element's position along the inline axis.
pub const flip_start: #(String, String)
- : Flips both the inline and block axis values, swapping the `start` properties with each other, and the `end` properties with each other.- [`position-area`](/en-US/docs/Web/CSS/Reference/Properties/position-area) value - : Positions the element relative to the edges of its associated anchor element by placing the positioned element on one or more tiles of an implicit 3x3 [position area grid](/en-US/docs/Web/CSS/Reference/Properties/position-area#description) based on the specified {{cssxref("position-area_value","<position-area>")}} value; the effect is the same as a custom {{cssxref("@position-try")}} fallback option containing only a {{cssxref("position-area")}} descriptor.
pub const inline_start: #(String, String)
inline-start value of position-try-fallbacks
pub const none: #(String, String)
- : The default value. There are no position try fallback options set.
pub fn raw(value: String) -> #(String, String)
Enter a raw string value for position-try-fallbacks
pub const revert_layer: #(String, String)
pub const self_block_end: #(String, String)
self-block-end value of position-try-fallbacks
pub const self_block_start: #(String, String)
self-block-start value of position-try-fallbacks
pub const self_inline_end: #(String, String)
self-inline-end value of position-try-fallbacks
pub const self_inline_start: #(String, String)
self-inline-start value of position-try-fallbacks
pub const span_block_end: #(String, String)
span-block-end value of position-try-fallbacks
pub const span_block_start: #(String, String)
span-block-start value of position-try-fallbacks
pub const span_bottom: #(String, String)
span-bottom value of position-try-fallbacks
pub const span_inline_end: #(String, String)
span-inline-end value of position-try-fallbacks
pub const span_inline_start: #(String, String)
span-inline-start value of position-try-fallbacks
pub const span_self_block_end: #(String, String)
span-self-block-end value of position-try-fallbacks
pub const span_self_block_start: #(String, String)
span-self-block-start value of position-try-fallbacks
pub const span_self_end: #(String, String)
span-self-end value of position-try-fallbacks
pub const span_self_inline_end: #(String, String)
span-self-inline-end value of position-try-fallbacks
pub const span_self_inline_start: #(String, String)
span-self-inline-start value of position-try-fallbacks
pub const span_self_start: #(String, String)
span-self-start value of position-try-fallbacks
pub const span_x_self_end: #(String, String)
span-x-self-end value of position-try-fallbacks
pub const span_x_self_start: #(String, String)
span-x-self-start value of position-try-fallbacks
pub const span_x_start: #(String, String)
span-x-start value of position-try-fallbacks
pub const span_y_self_end: #(String, String)
span-y-self-end value of position-try-fallbacks
pub const span_y_self_start: #(String, String)
span-y-self-start value of position-try-fallbacks
pub const span_y_start: #(String, String)
span-y-start value of position-try-fallbacks
pub fn var(variable: String) -> #(String, String)
Enter a variable name to be used for position-try-fallbacks.
It will be wrapped in var() and have -- prepended.
pub const x_self_start: #(String, String)
x-self-start value of position-try-fallbacks
pub const y_self_start: #(String, String)
y-self-start value of position-try-fallbacks