This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 16755 - Swap the ordering of flex-pack and auto margins
Summary: Swap the ordering of flex-pack and auto margins
Status: RESOLVED WONTFIX
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
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
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

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.