W3C home > Mailing lists > Public > www-style@w3.org > June 2015

RE: [css-flexbox] Percentage Margins and Paddings

From: Greg Whitworth <gwhit@microsoft.com>
Date: Thu, 4 Jun 2015 00:39:38 +0000
To: John Kreitlow <john.kreitlow@gmail.com>
CC: www-style list <www-style@w3.org>
Message-ID: <CY1PR03MB1439797E3619C486A8E10A3BA4B30@CY1PR03MB1439.namprd03.prod.outlook.com>
> Howdy,
> I've been following the issue regarding percentage margins and paddings on flex items closely. I'd like to propose a new property to address the issue.
> This may be bad timing considering the last call, but I think it might be a good idea to approach the problem from an implementation perspective. I wrote about the issue in detail on my blog 
> (http://www.radiumvinteractive.com/flexbox-percentage-margins-and-paddings/) as a sort of overview of the situation.
> I think a new property could solve the problem, but it might be too narrow of a use-case. I'd love to get some feedback.
> Here's my idea for the `flex-relation` property:

I think I saw someone answer this somewhere but I can't seem to find it on the list, so I thought I'd make sure someone replied. We actually proposed a similar flag/switch at the recent F2F meeting in NY, even had a prototype of it running in MS Edge to show toggling between the different modes. Ultimately, nobody wants the flag as it just complicates things and only benefits a very small percentage of people trying to solve this edge case scenario. It was resolved to keep the specification as is. Lea Verou pointed out that we should be working on a spec to fix this[1] to avoid having to use a hack at all ( I believe Tab agreed and stated that he thinks he has a solution but hasn't had time to put it into a spec yet, but I could have misheard).

I won't repeat everything that was discussed in the minutes as we all make our cases pretty clear and I encourage you to read it:

Link to discussion beginning: http://logs.csswg.org/irc.w3.org/css/2015-05-19/#e555153

Resolution: http://logs.csswg.org/irc.w3.org/css/2015-05-19/#e555153

> I'm not an editor or an expert, so I'm probably missing something important here.

No worries, we're _all_ continuing to learn here. Thank you so much for taking the time to provide us with your feedback. Please don't hesitate to reach out to us if you have any further ideas or questions!

~ Greg

[1] http://logs.csswg.org/irc.w3.org/css/2015-05-19/#e555153

Received on Thursday, 4 June 2015 00:40:11 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:54 UTC