- From: SelenIT via GitHub <sysbot+gh@w3.org>
- Date: Thu, 18 Jan 2018 08:38:38 +0000
- To: public-css-archive@w3.org
The ability to get width-relative vertical margins already exists: it's block formatting. If you really need this, you can always get it by using a block wrapper or `::before`/`::after` pseudo-elements as block placeholders. I guess this is what developers already have to do for this because of this "variance" in the implementations. The ability to get height-relative vertical margins didn't exist at all in CSS before flex/grid layout (except absolute positioning which is a very different case). This ability also looks very natural to flex/grid items where we have different options to align them vertically relatively to the row/line height, which is not the common case for block layout. If we drop this ability, we would lose it forever and would have to resort to absolute positioning when the need for it occurs. Considering this and in order to keep things simple (as @CyberAP [said](https://github.com/w3c/csswg-drafts/issues/2085#issuecomment-353112846)), I'd prefer @atanassov's option 3 (symmetric resolution for both Grid and Flexbox). And the ability to explicitly specify width or height percentages (the exact syntax TBD) would be the extremely useful addition too, of course. -- GitHub Notification of comment by SelenIT Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2085#issuecomment-358575708 using your GitHub account
Received on Thursday, 18 January 2018 08:38:41 UTC