W3C home > Mailing lists > Public > www-style@w3.org > February 2012

Re: [css3-flexbox] [css3-grid-layout] Too Many Alignment Properties

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 2 Feb 2012 03:10:40 -0800
Message-ID: <CAAWBYDBbgtGj5PFjn_zNkBDBbneMfKFhFLVES=yFintkkD0FHA@mail.gmail.com>
To: fantasai <fantasai.lists@inkedblade.net>
Cc: "www-style@w3.org" <www-style@w3.org>
On Wed, Feb 1, 2012 at 2:25 AM, fantasai <fantasai.lists@inkedblade.net> wrote:
> So far we have 'vertical-align' and 'text-align', which mainly have to do
> with
> text, but the new layout models are starting to introduce a lot more aligns.
> Flexbox has four different alignment properties. IIRC Grid introduces
> several
> more that do roughly the same thing but not quite. And there are use cases
> for
> alignment in general block layout -- there's been drafts for alignment
> properties
> in both dimensions there (that need homes, but that's a separate issue).
> Rather than having every layout system design and implement its own set of
> alignment properties, I'd like us to take a good look and see if we can boil
> these down to a single set of properties that we can all share.
> There are basically two concepts of what alignment applies to:
>  a) the thing itself
>  b) the thing's contents
> And then there are the two axes: main axis vs. cross axis; inline axis vs.
> block;
> rows vs. columns; etc.
> There's the problem of needing four appropriately generic and appropriately
> precise names, but I think we should be able to get away with four
> properties
> in CSS total. Values that don't apply in a particular layout mode can be
> defined
> to fall back to something sensible. I think that's better than having more
> and
> more properties that do roughly the same thing but take effect or not
> depending
> on the layout mode.

I'm willing to try it out, but I'm not confident it'll be an
improvement.  Let's work on it, though.

Received on Thursday, 2 February 2012 11:11:28 UTC

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