- From: David Hyatt <hyatt@apple.com>
- Date: Sun, 12 Apr 2009 18:04:58 -0500
- To: Andrew Fedoniouk <news@terrainformatica.com>
- Cc: Robert O'Callahan <robert@ocallahan.org>, www-style list <www-style@w3.org>
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 UTC