Skip to main content

Module sizing_keyword

Module sizing_keyword 

Source
Expand description

Shared resolution logic for sizing keywords (min-content, max-content, fit-content, fit-content(...), and stretch) on the width/height style properties

Enumsยง

SizingKeywordResolution ๐Ÿ”’
How a sizing keyword resolves to a used size

Functionsยง

resolve_absolute_sizing_keywords ๐Ÿ”’
Resolve the sizing keywords (min-content, max-content, fit-content, fit-content(...), and stretch) on the size styles of an absolutely positioned item, filling in the corresponding known_dimensions axes.
resolve_sizing_keyword ๐Ÿ”’
Resolve an itemโ€™s size style in one axis if it is a sizing keyword (min-content, max-content, fit-content, fit-content(...), or stretch).