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

RE: [css3-box] padding: auto

From: Sylvain Galineau <sylvaing@microsoft.com>
Date: Thu, 19 Jul 2012 01:01:07 +0000
To: Lea Verou <leaverou@gmail.com>, Alex Mogilevsky <alexmog@microsoft.com>
CC: www-style list <www-style@w3.org>
Message-ID: <3C4041FF83E1E04A986B6DC50F0178291BE13521@TK5EX14MBXC221.redmond.corp.microsoft.com>

[Lea Verou:]
> That's also a problem with margin:auto, yet CSS doesn't include a
> mechanism for min-margin. 

I'm not sure that's a 'problem' since both margin and padding have initial values
of zero; but margin:auto is greatly simplified by the fact that the other dimensions 
either do not support auto (border, padding) or resolve auto based on the content 
(width). But as Mike Sherov points out, things change once you have padding:auto.
Now you can have both margin:auto and padding:auto and it's unclear what should happen.
At this point one could argue padding:auto implies  min-padding and min-margin.

Then you also need to define whether/how this feeds into min/max-width/height calculations, 
among other things... 
Received on Thursday, 19 July 2012 01:01:42 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:01 UTC