Style.OverflowSourceCSS overflow property.
The overflow property controls how content that overflows a container affects layout. In toffee, overflow primarily impacts the automatic minimum size calculation for Flexbox and CSS Grid items and controls scrollbar space reservation.
Overflow has two key layout effects:
Visible overflow is 0 rather than content-based.Scroll overflow reserves space for a scrollbar, controlled by the scrollbar_width property.type t = | VisibleContent-based automatic minimum size. Overflowing content contributes to parent scroll region.
*)| ClipContent-based automatic minimum size. Overflowing content does not contribute to parent scroll region.
*)| HiddenZero automatic minimum size. Overflowing content does not contribute to parent scroll region.
*)| ScrollZero automatic minimum size with scrollbar space reserved. Overflowing content does not contribute to parent scroll region.
*)is_container overflow returns true if overflow contains its contents.
Returns true for Hidden and Scroll, false for Visible and Clip.
to_automatic_min_size overflow returns the automatic minimum size for overflow.
Returns Dimension.zero for Hidden and Scroll, Dimension.auto for Visible and Clip. This determines the automatic minimum size of Flexbox and CSS Grid items.
pp fmt overflow formats overflow for display.