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

Re: [css3-flexbox][css3-align] "Safe" or "true" centering by default

From: fantasai <fantasai.lists@inkedblade.net>
Date: Wed, 16 May 2012 18:14:57 -0700
Message-ID: <4FB45111.8020100@inkedblade.net>
To: www-style@w3.org
On 05/16/2012 05:27 PM, Tab Atkins Jr. wrote:
> Issue link: http://wiki.csswg.org/topics/css3-flexbox-true-safe-centering
>
> Existing centering methods, such as using auto margins or the
> 'text-align' property, use “safe” centering - if an object is wider
> than the container, it stops centering, and instead start/before
> aligns. This helps ensure that content doesn't accidentally fall off
> into an unscrollable area past the top/left edge of the screen.
>
> Safe centering is “safe”, and common. However, there are good
> use-cases for “true” centering, which continues to properly center an
> item even if it's larger than the container. Which one should we
> default to? Should we make it possible to opt into the other, and how?
>
> A. (Current draft) “Safe” center by default. Authors can opt into true
> centering by adding the “true” keyword alongside their alignment
> value.
> B. “True” center by default. Authors can opt into safe centering by
> adding the “safe” keyword alongside their alignment value.
>
> Thoughts?  I'm fine with what's in the draft currently, the (A) proposal.

Current flexbox does true alignment, though. And you can do safe
alignment with auto margins for items, at least, though not for
flex-line-pack. So I'm not sure A is the right answer here; maybe
it needs to vary by layout mode.

~fantasai
Received on Thursday, 17 May 2012 01:15:28 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:54 GMT