Skip to main content

Module container

Module container 

Source
Expand description

@container conditions and the container query length units (cqw … cqmax), answered from the query containers above the element being cascaded and the content-box sizes the host’s last layout gave them.

Structs§

Container
A query container among an element’s ancestors: an element whose container-type is not normal or that has a container-name. The chain runs nearest first.

Constants§

BLOCK
The block (vertical) axis: container-type: size.
INLINE
The inline (horizontal) axis: container-type: inline-size or size.

Functions§

set_size_source
with_chain
Runs one element’s cascade with chain as its query containers.

Type Aliases§

Chain
SizeSource
The content box (width, height) of a container as last laid out; None before its first layout. The host records each question: an answer that moves must restyle what asked.