W3C home > Mailing lists > Public > www-style@w3.org > September 2011

Re: [css3-flexbox] auto margins

From: Ojan Vafai <ojan@chromium.org>
Date: Thu, 22 Sep 2011 11:44:15 -0700
Message-ID: <CANMdWTuJHvYynfrRRHuVCD2qS7VtVh5XjZdQa1UdeQ-PEMgjfw@mail.gmail.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: www-style@w3.org
On Wed, Sep 21, 2011 at 5:16 PM, Tab Atkins Jr. <jackalmage@gmail.com>wrote:

> On Wed, Sep 21, 2011 at 4:41 PM, Ojan Vafai <ojan@chromium.org> wrote:
> > Currently the spec says to treat auto margins as a flex of 1. This seems
> to
> > me that it adds complexity without any benefit. Using margin: auto to
> center
> > fixed size blocks is a hack that we don't need to perpetuate to other
> layout
> > mechanisms that have a proper way to center elements. It simplifies both
> the
> > implementation and the use of flexbox if we treat auto margins as 0.
> Where does it still say that?  I should have editted all of those out.

Oh, I guess it doesn't. I just assumed it did since I didn't see discussion
about it on this list. I guess I should follow the commit history for the
Received on Thursday, 22 September 2011 18:45:07 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:04 UTC