Don't bother measuring for min-height:auto, for flex items with "flex-shrink:0; flex-basis:auto; height: [definite]" (e.g. from "flex:none;height:[definite]" shorthand)
Categories
(Core :: Layout: Flexbox, enhancement)
Tracking
()
People
(Reporter: dholbert, Unassigned)
References
(Blocks 1 open bug)
Details
Reporter | ||
Updated•10 years ago
|
Comment 1•3 years ago
|
||
Daniel, do we still need to fix this bug? I believe we still need to reflow the inflexible flex item at least once, which can be a measuring reflow. In this specific scenario, the flex item cache mechanism is likely to find the item's main size not changed, and skip its final reflow.
Reporter | ||
Comment 2•3 years ago
|
||
Yeah, this feels probably-not-worth-fixing (if I'm correctly understanding what I described in comment 0).
I think the min-height:auto
measuring reflow is unnecessary (strictly speaking) in the scenario described in comment 0, but it also is unlikely to be a perf issue since we'll cache the result and shouldn't repeat that measurement on incremental reflows of the page (unless the content actually changes).
The logic to determine that it's unnecessary is probably not worth the added complexity (though we can always reopen this if we discover a scenario where it's a clear perf win).
Comment 3•3 years ago
|
||
Thanks!
Description
•