Bug 16755 - Swap the ordering of flex-pack and auto margins
Swap the ordering of flex-pack and auto margins
Status: RESOLVED WONTFIX
Product: CSS
Classification: Unclassified
Component: Flexbox
unspecified
PC Linux
: P1 normal
: ---
Assigned To: Tab Atkins Jr.
public-css-bugzilla
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-04-17 01:34 UTC by Tab Atkins Jr.
Modified: 2012-06-07 20:10 UTC (History)
2 users (show)

See Also:


Attachments

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
http://lists.w3.org/Archives/Public/www-style/2012Apr/0095.html

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.