package toffee
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=9e4e90d17f9b2af1b07071fe425bc2c519c849c4f1d1ab73cde512be2d874849
sha512=06e9c4a741590942e81a27738d0b5c0413fafec8cf3b7dae047ad69f155e7b718aa4223818dc161b7d028efffcfd3365905e264d6fd31d453910ddfa91dcf9b9
doc/toffee.style/Style/Track_sizing_function/Min/index.html
Module Track_sizing_function.MinSource
Operations on the minimum sizing function component.
is_intrinsic t returns true if the min component is min-content, max-content, or auto.
is_min_or_max_content t returns true if the min component is min-content or max-content.
is_min_content t returns true if the min component is min-content.
is_max_content t returns true if the min component is max-content.
definite_value t parent_size resolves the min component to a concrete value.
Returns Some value for fixed lengths or percentages (when parent_size is Some). Returns None for intrinsic or flexible values.
definite_value_with_calc t parent_size calc_resolver resolves the min component, including calc() expressions.
The calc_resolver is called with a calc index and parent size to resolve calc values.
resolved_percentage_size t parent_size resolves percentage values.
Returns Some (value * parent_size) for percentage values. Returns None otherwise.