package toffee
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=9e4e90d17f9b2af1b07071fe425bc2c519c849c4f1d1ab73cde512be2d874849
sha512=06e9c4a741590942e81a27738d0b5c0413fafec8cf3b7dae047ad69f155e7b718aa4223818dc161b7d028efffcfd3365905e264d6fd31d453910ddfa91dcf9b9
doc/toffee.style/Style/Track_sizing_function/Max/index.html
Module Track_sizing_function.MaxSource
Operations on the maximum sizing function component.
is_intrinsic t returns true if the max component is min-content, max-content, fit-content, or auto.
is_max_content_alike t returns true if the max component is max-content, fit-content, or auto.
Per the CSS Grid specification, auto and fit-content are treated as max-content in most contexts.
is_min_content t returns true if the max component is min-content.
is_max_content t returns true if the max component is max-content.
is_fit_content t returns true if the max component is fit-content.
is_max_or_fit_content t returns true if the max component is max-content or fit-content.
fr_value t returns the fr coefficient if the max component is an fr value. Returns 0.0 otherwise.
has_definite_value t parent_size returns true if the max component can be resolved to a concrete value given parent_size.
definite_value t parent_size resolves the max 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 max component, including calc() expressions.
The calc_resolver is called with a calc index and parent size to resolve calc values.
definite_limit t parent_size resolves the maximum limit of the track.
For fit-content values, returns the fit-content limit. Otherwise behaves like definite_value.
definite_limit_with_calc t parent_size calc_resolver resolves the maximum limit, including calc() expressions in fit-content arguments.
resolved_percentage_size t parent_size resolves percentage values.
Returns Some (value * parent_size) for percentage values. Returns None otherwise.