RE: [css3-box] padding: auto

[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