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

Re: [css3-flexbox] Bad result in flex algorithm when combining stretch, and elements with an aspect ratio

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Fri, 7 Dec 2012 09:16:25 -0800
Message-ID: <CAAWBYDDYuTwaZbQK-DAkz8qSYpxFX8MLQyxGsndHFo=nnF6Zzg@mail.gmail.com>
To: Rossen Atanassov <Rossen.Atanassov@microsoft.com>
Cc: "Kang-Hao (Kenny) Lu" <kanghaol@oupeng.com>, www-style list <www-style@w3.org>, Alex Mogilevsky <alexmog@microsoft.com>
On Thu, Dec 6, 2012 at 5:09 PM, Rossen Atanassov
<Rossen.Atanassov@microsoft.com> wrote:
> One clarification to this thread. When I originally discussed this with Tab the scenario I described involved multiline flex and items that have intrinsic ratio. What I pointed out was the difference between our implementation and the spec definition (chrome's implementation seems to follow that) in how and when the line breaks are evaluated. When flex items get stretched to the line cross size they might end up changing the line break if their main axis size changed as a consequence of that.

According to the spec, this shouldn't ever happen - by the time
"align-self:stretch" is applied, the main size is already fixed, and
shouldn't respond to cross size changes.  Right now, that means that
multi-line flexboxes will always distort items with an intrinsic ratio
if they get stretched.

If you'd like a different behavior, I'm okay with that, but I want to
avoid any situation where there is overflow/underflow.

~TJ
Received on Friday, 7 December 2012 17:17:14 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:03 GMT