Bug 16755 - Swap the ordering of flex-pack and auto margins
Summary: Swap the ordering of flex-pack and auto margins
Alias: None
Product: CSS
Classification: Unclassified
Component: Flexbox (show other bugs)
Version: unspecified
Hardware: PC Linux
: P1 normal
Target Milestone: ---
Assignee: Tab Atkins Jr.
QA Contact: public-css-bugzilla
Depends on:
Reported: 2012-04-17 01:34 UTC by Tab Atkins Jr.
Modified: 2012-06-07 20:10 UTC (History)
2 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Tab Atkins Jr. 2012-04-17 01:34:13 UTC

Currently, free space is distributed as (1) 'flex', (2) auto margins, (3) flex-pack/align.

Ojan and Tony argue that it would make more sense to swap (2) and (3), or even drop (2) entirely, as 'auto' margins for alignment are a hack from Box Layout's limitations.
Comment 1 Alex Mogilevsky 2012-05-08 19:34:44 UTC
if auto margins have any effect, it has to be before pack. 

After pack, with most pack options there is no extra space, but if it is start or end there is, only then auto margins will have effect.

If the effect of auto margins is useful, it shouldn't depend on pack. If we don't want auto margins to work, we should just kill them.
Comment 2 Tab Atkins Jr. 2012-06-07 20:10:46 UTC
Decided to stick with the spec as designed, where auto margins soak up free space after 'flex' but before the alignment properties.