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

Re: [CSS21] Suggestion for Introduction of new display types

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 1 Aug 2012 09:02:26 -0700
Message-ID: <CAAWBYDAkqQD8LqRh0oWjb8vEJeEs10_zUsAxGUDuf8Yz6ZSs4Q@mail.gmail.com>
To: Ferenc Vajda <fvajda@doxence.com>
Cc: www-style@w3.org
On Wed, Aug 1, 2012 at 8:42 AM, Ferenc Vajda <fvajda@doxence.com> wrote:
> I would like to make a suggestion to introduce a new box formatting
> model defining two values for 'display' property:
>
>    container, container-inline
>
> Both would be rendered as if they were block/block-inline types, the
> only difference would be the behavior of vertical-align. The behavior
> for this latter is similar to that of table-cell.
>
> I know that there are suggestions for a solution, but I would prefer
> this solution to e.g. the margin-box model, because this behavior is
> more like a "box-display" (e.g. table-cell), than a box-sizing or such.
>
> A display:container could work on body, as well, resulting in a
> dynamically changeable window-size box.
>
> Since table-cell implements this rendering, sharing with the new types
> could not be a hard issue for browser developers.

Hi!

We're actually fixing this use-case (easy centering/alignment of block
content) via a different method, by taking the generic alignment
methods that Flexbox defines and extending them to Block.  Check out
http://dev.w3.org/csswg/css3-align/ for details on our approach.

So, rather than using "vertical-align", you'll use "align-content".

~TJ
Received on Wednesday, 1 August 2012 16:03:14 GMT

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