CSS-like containing block — resolves relative sizes against a parent area.
Use inside boxes, rows, and columns so children can declare width: :full
or "50%" and inherit the parent's available space (similar to HTML width: 100%).
Summary
Functions
Resolve a height value against the parent area height.
Resolve {w, h} against a parent area.
Apply width/height resolution to a style map using the parent area.
Resolves :width, :height, and :wrap_width when present.
Resolve a width value against the parent area width.
Text wrap width for a child at horizontal offset x inside the area.
Like CSS: width: calc(100% - x).
Types
Functions
Resolve a height value against the parent area height.
Resolve {w, h} against a parent area.
Apply width/height resolution to a style map using the parent area.
Resolves :width, :height, and :wrap_width when present.
Resolve a width value against the parent area width.
Text wrap width for a child at horizontal offset x inside the area.
Like CSS: width: calc(100% - x).