Skip to main content

Module dimensions

Module dimensions 

Source
Expand description

CSS properties related to dimensions and sizing.

Key types: LayoutWidth / LayoutHeight (support auto, pixel values, min-content, max-content, fit-content(), and calc() expressions), LayoutMinWidth, LayoutMinHeight, LayoutMaxWidth, LayoutMaxHeight (simple pixel-value constraints), and LayoutBoxSizing.

calc() expressions use a flat stack-machine representation via CalcAstItem — see its documentation for the encoding scheme. The layout solver in layout/src/solver3/calc.rs evaluates these at resolve time.

Re-exports§

pub use self::parser::*;

Modules§

parser

Structs§

CalcAstItemVec
CalcAstItemVecSlice
C-compatible slice type for $struct_name. This is a non-owning view into a Vec’s data.
LayoutMaxHeight
LayoutMaxWidth
LayoutMinHeight
LayoutMinWidth

Enums§

CalcAstItem
A single item in a calc() expression, stored as a flat stack-machine representation.
CalcAstItemVecDestructor
LayoutBoxSizing
Represents a box-sizing attribute
LayoutHeight
LayoutWidth
OptionCalcAstItem

Type Aliases§

CalcAstItemVecDestructorType