|Summary:||Can't justify content when only child of flex container is a text node|
|Component:||Layout and Rendering||Assignee:||Nobody <webkit-unassigned>|
|Version:||528+ (Nightly build)|
|Bug Depends on:||88443|
Description Eric 2012-06-05 20:34:54 PDT
-webkit-justify-conten doesn't do anything. See attached. The text is the only child of the parent <div> (flex container) and it should be centered vert/horiztonally.
Comment 2 Ojan Vafai 2012-06-05 20:55:18 PDT
Looks like it might have been a renaming regression as well. Changing the test-case to the old names makes the text center on Chrome 21.0.1155.2 (Official Build 139341) dev.
Comment 3 Tony Chang 2012-06-06 09:44:41 PDT
Ah, this is because of the change in the initial value of flex. Since the initial value is 1, the text stretches to take all the space and there's no room for justify-content. This was brought up on the spec mailing list as to why we shouldn't have flexing by default.