W3C home > Mailing lists > Public > www-style@w3.org > May 2014

[css-flexbox] alignment of abs-pos flex descendants

From: Rossen Atanassov <Rossen.Atanassov@microsoft.com>
Date: Wed, 7 May 2014 16:55:54 +0000
To: www-style list <www-style@w3.org>
Message-ID: <b22fd2dc0ac34c3ca53adf6eb5f3f98e@BN1PR03MB187.namprd03.prod.outlook.com>
Section 4.1, Example 3 ends with the following statement: 

"Setting 'justify-content:center' on the flex container, however, would center it in the main axis."

This appears confusing for two reasons:
1. The behavior makes sense only in cases when the flexbox itself is the abs-pos containing block. If the containing block is some distant ancestor alignment will not be appropriate.
2. Defining the behavior of positioning/sizing abs-pos elements based on alignment inside flexbox spec seems like the wrong place. Defining the static position only is fine but not the rest of the layout which this sentence implies.

I propose we make the behavior applicable only in cases when the flexbox is the containing block. Also, consider moving the definition of alignment and abs-pos elements to the positioning draft.

Rossen
Received on Wednesday, 7 May 2014 16:56:34 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:51:26 UTC