W3C home > Mailing lists > Public > www-style@w3.org > April 2009

Re: [CSS3] Flexible Flow Module, proposal.

From: David Hyatt <hyatt@apple.com>
Date: Sun, 12 Apr 2009 18:04:58 -0500
Cc: Robert O'Callahan <robert@ocallahan.org>, www-style list <www-style@w3.org>
Message-id: <F520C74C-D451-452A-A2E4-522DA1835A72@apple.com>
To: Andrew Fedoniouk <news@terrainformatica.com>
Another issue I have with flex units on margins and padding is that  
you will end up wanting to be able to:

(a) specify a preferred value
(b) specify a minimum value
(c) specify a maximum value (?)

For example, I can see cases where I'd want to allow padding to flex,  
but I wouldn't want you to be able to eliminate it entirely.  Without  
min-padding and max-padding values, you have to come up with a way to  
specify this stuff.  It seems like (a) and (b) are more likely to be  
desired than (c), so one option might be to say that specifying an  
explicit value in the unit (similar to what I proposed for width in my  
previous message) would set both (a) and (b).

For example:

padding: (2px)*

could indicate that the padding will start off at 2px, cannot shrink  
below 2px, and can flex up without bound.  In effect the unit  
specified in parentheses sets both a minimum and preferred value.

It's not clear to me what it would mean to specify flex units in min- 
width or max-width (or min-height/max-height).  Maybe that would just  
be disallowed?

dave
(hyatt@apple.com)
Received on Sunday, 12 April 2009 23:05:44 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 22 May 2012 03:46:58 GMT