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§
Structs§
- Calc
AstItem Vec - Calc
AstItem VecSlice - C-compatible slice type for $struct_name. This is a non-owning view into a Vec’s data.
- Layout
MaxHeight - Layout
MaxWidth - Layout
MinHeight - Layout
MinWidth
Enums§
- Calc
AstItem - A single item in a
calc()expression, stored as a flat stack-machine representation. - Calc
AstItem VecDestructor - Layout
BoxSizing - Represents a
box-sizingattribute - Layout
Height - Layout
Width - Option
Calc AstItem