mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-27 19:59:17 +00:00
When we're performing max-content layout (a separate throwaway layout pass that only exists to discover the intrinsic max-content size of a specific box), we act as if the containing block has infinite width. This allows an infinite length to propagate into the layout system, which is fine, but at some point it needs to be turned into a finite number or some loop conditions will not make sense and we can hang indefinitely (e.g in the flexible lengths resolution algorithm.) We fix this by making Length::resolved() turn non-finite values into an "auto" length.
5.7 KiB
5.7 KiB