- From: fantasai <fantasai.lists@inkedblade.net>
- Date: Thu, 26 Apr 2012 12:58:22 -0700
- To: "Tab Atkins Jr." <jackalmage@gmail.com>
- CC: Anton Prowse <prowse@moonhenge.net>, www-style@w3.org
On 04/26/2012 10:16 AM, Tab Atkins Jr. wrote: > On Thu, Apr 26, 2012 at 4:40 AM, Anton Prowse<prowse@moonhenge.net> wrote: >> What's the motivation for 'stretch' being the default? It wouldn't seem to >> work well with typical toolbars, which are one of the primary use cases for >> this spec. > > It was the default in the old spec. Off the top of my head, I'm not > sure what the reasoning was for making that the default, though. It's usually what you want. The alignment you want for toolbars is * flexbox items stretch * contents of flexbox items baseline-align * if they don't have a baseline, they center * if the contents that are baseline-aligned have room to move around, they are centered Now Flexbox, unlike tables, doesn't have the ability to center the content of a flexbox item. And centering can't be combined with baseline-alignment. So you can't actually get this behavior. ~fantasai
Received on Thursday, 26 April 2012 19:58:55 UTC