monks/container_type

An element can be established as a query container using the container-type CSS property. container-type is used to define the type of container context used in a container query. The available container contexts are:

Values

pub const inherit: #(String, String)
pub const initial: #(String, String)
pub const inline_size: #(String, String)
pub const normal: #(String, String)
  • : Default value. The element is not a query container for any container size queries, but remains a query container for container style queries.
pub fn raw(value: String) -> #(String, String)

Enter a raw string value for container-type

pub const revert: #(String, String)
pub const revert_layer: #(String, String)
pub const size: #(String, String)
  • : Establishes a query container for container size queries in both the inline and block dimensions. Applies style and size containment to the element. Size containment is applied to the element in both the inline and block directions. The size of the element can be computed in isolation, ignoring the child elements.
pub const unset: #(String, String)
pub fn var(variable: String) -> #(String, String)

Enter a variable name to be used for container-type. It will be wrapped in var() and have -- prepended.

Search Document