monks/position_area
The position-area CSS property enables an anchor-positioned element to be positioned relative to the edges of its associated anchor element by placing the positioned element on one or more tiles of an implicit 3x3 grid, where the anchoring element is the center cell.
position-area provides a convenient alternative to tethering and positioning an element relative to its anchor via {{glossary(“inset properties”)}} and the {{cssxref(“anchor()”)}} function. The grid-based concept solves the common use-case of positioning the edges of the positioned element’s containing block relative to the edges of its default anchor element.
If an element does not have a default anchor element, or is not an absolutely-positioned element, this property has no effect.
This property was originally named and supported in Chromium browsers as
inset-area, with the same property values. Both property names will be supported for a short while, for backwards compatibility purposes.
Values
pub const revert_layer: #(String, String)
pub const self_block_end: #(String, String)
self-block-end value of position-area
pub const self_block_start: #(String, String)
self-block-start value of position-area
pub const self_inline_end: #(String, String)
self-inline-end value of position-area
pub const self_inline_start: #(String, String)
self-inline-start value of position-area
pub const span_block_end: #(String, String)
span-block-end value of position-area
pub const span_block_start: #(String, String)
span-block-start value of position-area
pub const span_inline_end: #(String, String)
span-inline-end value of position-area
pub const span_inline_start: #(String, String)
span-inline-start value of position-area
pub const span_self_block_end: #(String, String)
span-self-block-end value of position-area
pub const span_self_block_start: #(String, String)
span-self-block-start value of position-area
pub const span_self_inline_end: #(String, String)
span-self-inline-end value of position-area
pub const span_self_inline_start: #(String, String)
span-self-inline-start value of position-area
pub const span_self_start: #(String, String)
span-self-start value of position-area
pub const span_x_self_end: #(String, String)
span-x-self-end value of position-area
pub const span_x_self_start: #(String, String)
span-x-self-start value of position-area
pub const span_y_self_end: #(String, String)
span-y-self-end value of position-area
pub const span_y_self_start: #(String, String)
span-y-self-start value of position-area
pub fn var(variable: String) -> #(String, String)
Enter a variable name to be used for position-area.
It will be wrapped in var() and have -- prepended.