Summary: | Implied minimum size of flex items is min-content | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Tony Chang <tony> | ||||
Component: | Layout and Rendering | Assignee: | Ojan Vafai <ojan> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | eric, ojan, webkit.review.bot | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Bug Depends on: | 88437 | ||||||
Bug Blocks: | 62048 | ||||||
Attachments: |
|
Description
Tony Chang
2012-05-25 16:11:21 PDT
Created attachment 152045 [details]
Patch
Comment on attachment 152045 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=152045&action=review > Source/WebCore/rendering/RenderFlexibleBox.cpp:754 > + Length min = isHorizontalFlow() ? child->style()->minWidth() : child->style()->minHeight(); Nit: childMin or maybe even childMainAxisMin > Source/WebCore/rendering/RenderFlexibleBox.cpp:805 > + if (childSize < minContent) > + return minContent; Nit: You could either return std::max(childSize, minContent) or assign that value to childSize. > LayoutTests/css3/flexbox/flex-item-min-size.html:41 > + <div>Tests that flex items have default min-size to min-content in the main axis direction.</div> It would be nice to test this for other writing modes. Committed r122508: <http://trac.webkit.org/changeset/122508> |