monks/container_name

The container-name CSS property specifies a list of query container names used by the @container at-rule in a container query. A container query will apply styles to elements based on the size or scroll-state of the nearest ancestor with a containment context. When a containment context is given a name, it can be specifically targeted using the {{Cssxref(“@container”)}} at-rule instead of the nearest ancestor with containment.

Values

pub const inherit: #(String, String)
pub const initial: #(String, String)
pub const none: #(String, String)
  • : Default value. The query container has no name.
pub fn raw(value: String) -> #(String, String)

Enter a raw string value for container-name

pub const revert: #(String, String)
pub const revert_layer: #(String, String)
pub const unset: #(String, String)
pub fn var(variable: String) -> #(String, String)

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

Search Document