- From: Tab Atkins Jr. <jackalmage@gmail.com>
- Date: Wed, 1 Aug 2012 09:02:26 -0700
- 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 UTC