Bug 94406

Summary: flex-item tables need special handling
Product: WebKit Reporter: Ojan Vafai <ojan>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: tony
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 62048    

Description Ojan Vafai 2012-08-17 18:43:43 PDT
See http://dev.w3.org/csswg/css3-flexbox/#table-items.

On a flex item with ‘display: table’, the table wrapper box becomes the flex item, and the ‘order’ and ‘align-self’ properties apply to it. The contents of any caption boxes contribute to the calculation of the table wrapper box's min-content and max-content sizes. However, like ‘width’ and ‘height’, the ‘flex’ longhands apply to the table box as follows: the flex item's final size is calculated by performing layout as if the distance between the table wrapper box's edges and the table box's content edges were all part of the table box's border+padding area, and the table box were the flex item.