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

RE: [css3-flexbox] absolutely positioned flex item should not have side effect on space distribution

From: Alex Mogilevsky <alexmog@microsoft.com>
Date: Wed, 11 Jul 2012 16:33:22 +0000
To: John Hax <johnhax@gmail.com>, "www-style@w3.org" <www-style@w3.org>
Message-ID: <2C86A15F63CD734EB1D846A0BA4E0FC838E45894@CH1PRD0310MB381.namprd03.prod.outlook.com>
It is possible to define it that way, it was that way at some point. However there are some non-trivial details to be defined, the position in the middle of the space seems as random as any other, it is more complicated to implement, all for the benefit of something that nobody could come up with a sensible use case for.

There are more details to be defined if we were taking this route. What happens if there are multiple positioned items with placeholders? What happens if the position element is at the end of a line in multiline flexbox – which line does it go to?

We have chosen the simplest approach in the case where other approaches involved non-zero additional complexity and no demonstrated benefits.

Alex

From: John Hax [mailto:johnhax@gmail.com]
Sent: Wednesday, July 11, 2012 3:35 AM
To: www-style@w3.org
Subject: [css3-flexbox] absolutely positioned flex item should not have side effect on space distribution

Absolutely positioned flex item should not have side effect on space distribution. Since space-* is about distribute spaces evenly,

  A--B--C

with B absolutely positioned, should be rendered as

  A--C

, where B is positioned at the middle of A and C if all 'top'/'bottom'/'right'/'left' are 'auto'。


--
hax
Received on Wednesday, 11 July 2012 16:35:34 GMT

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