RE: [css3-flexbox] max-height and box-align (RE: flexbox questions)

> -----Original Message-----
> From: Tab Atkins Jr. [mailto:jackalmage@gmail.com]
> Sent: Friday, May 28, 2010 2:19 PM
> 
> The fact that max-height doesn't work on a table-cell is actually really
> confusing.  ^_^  We certainly don't need to map over every concept from
> normal flow into new flow modes, but some things are so simple that *not*
> mapping them over causes more confusion than just doing it.  (For tables,
> frex, an ideal solution would involve resolving maximum heights as some
> combination of the max-height of the cell, its siblings, and its row.)

I am not sure what is confusing about max-width or max-height not restricting column width or row height. If something is a cell in a grid it has to match the grid size, which adds more settings, and the more settings you have the easier it is to get overspecified. It seems reasonable that the table has final say on cell sizes. It will respect min-width, but may brow beyond max-width. If that is reasonable for a grid (I think it is) it should be reasonable for a flex-box.

> > (3) Yet another option:
> >
> > Drop box-flex-group.
> > Max-width (for horizontal) tramps the content width, but the outcome is
> simply an input into flex distribution, just like in tables (that is what I think
> tables do, correct me if I am wrong).
> > Max-height also overrides content height but then height can be increased
> by stretch alignment.
> 
> Ah, so max-height just provides a limit for the height before flex
> computation.  That's a possibility.  I'd want min-height to work the same way,
> though, along with min/max-width.

This is interesting to explore. You have shown in use cases that if equal size is desired (a.k.a. absolute flex) it can be done by using width:0, but then it is much harder or impossible to apply min-width (e.g. not shrink beyond content width).

Received on Wednesday, 2 June 2010 01:14:47 UTC