48 messages in org.w3.www-styleRe: Publishing the flexible box model
FromSent OnAttachments
L. David BaronJun 3, 2008 9:48 pm 
Alan GresleyJun 3, 2008 11:56 pm 
L. David BaronJun 4, 2008 12:22 am 
Anne van KesterenJun 4, 2008 1:12 am 
David HyattJun 4, 2008 1:46 pm 
Andrew FedonioukJun 4, 2008 5:50 pm 
L. David BaronJun 4, 2008 6:04 pm 
David HyattJun 4, 2008 6:54 pm 
Andrew FedonioukJun 4, 2008 8:09 pm.h
L. David BaronJun 4, 2008 10:23 pm 
L. David BaronJun 4, 2008 10:48 pm 
Andrew FedonioukJun 4, 2008 11:39 pm 
Andrew FedonioukJun 5, 2008 12:32 am 
Alan GresleyJun 5, 2008 12:34 am 
Robert O'CallahanJun 6, 2008 3:44 am 
fantasaiJun 6, 2008 8:12 am 
Andrew FedonioukJun 6, 2008 9:06 am 
Anne van KesterenJun 6, 2008 9:40 am 
Andrew FedonioukJun 6, 2008 9:54 am 
fantasaiJun 6, 2008 12:41 pm 
Andrew FedonioukJun 6, 2008 1:00 pm 
Robert O'CallahanJun 6, 2008 1:43 pm 
Andrew FedonioukJun 6, 2008 3:48 pm 
Robert O'CallahanJun 7, 2008 2:30 am 
Alan GresleyJun 7, 2008 7:24 am 
Alan GresleyJun 7, 2008 7:48 am 
Brad KemperJun 7, 2008 10:03 am 
Andrew FedonioukJun 7, 2008 1:34 pm 
Andrew FedonioukJun 7, 2008 2:46 pm 
Alan GresleyJun 7, 2008 8:56 pm 
Robert O'CallahanJun 9, 2008 5:48 pm 
Andrew FedonioukJun 9, 2008 7:22 pm 
Robert O'CallahanJun 9, 2008 7:59 pm 
L. David BaronJun 9, 2008 8:29 pm 
Andrew FedonioukJun 9, 2008 9:24 pm 
Andrew FedonioukJun 9, 2008 9:55 pm 
Robert O'CallahanJun 9, 2008 10:04 pm 
Andrew FedonioukJun 10, 2008 12:02 am 
Robert O'CallahanJun 10, 2008 1:46 am 
Alan GresleyJun 10, 2008 2:19 am 
Alan GresleyJun 10, 2008 2:35 am 
Alan GresleyJun 10, 2008 2:50 am 
Andrew FedonioukJun 10, 2008 12:58 pm 
Robert O'CallahanJun 10, 2008 2:34 pm 
Andrew FedonioukJun 10, 2008 4:07 pm 
Andrew FedonioukJun 10, 2008 4:30 pm 
Andrew FedonioukJun 10, 2008 4:39 pm 
Mike WilsonJun 12, 2008 4:46 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: Publishing the flexible box modelActions...
From:Andrew Fedoniouk (ne@terrainformatica.com)
Date:Jun 5, 2008 12:32:28 am
List:org.w3.www-style

L. David Baron wrote:

On Wednesday 2008-06-04 17:50 -0700, Andrew Fedoniouk wrote:

flow:horizontal; /* all children form single row */

I've been thinking about this a little more. I think my main problem with what you're proposing is this:

You're proposing that we take the CSS box model, with all its complexity -- things like margin collapsing, flow around floats, doing intrinsic width calculation in the presence of floats and containers that establish new block formatting contexts, and make this whole complicated thing work in both horizontal and vertical orientation (and mixing orientations). I don't think all of these pieces are needed for user interface layout, and I worry that this whole mess put together will collapse under the weight of its own complexity.

My solution (@flow + flex units) solve multiple existing problems: 1) vertical alignment and positioning 2) flex layouts. 3) real sidebar/statusbar/toolbar layouts.

And your solution appears as a foreign entity for CSS. Here is an example from document you have provided: button { box-flex: 1.0; width: 100px; }

So what is the width of the button? Is it defined by @box-flex or by the @width? And how all this plays with min/max-widths?

To avoid any logical conflicts it should be just:

button { width: 1*; }

with optional min/max-widths.

I've implemented flex units in the engine that supports CSS2.1 pretty much in full. flex units implementation is around 2500 lines in total (C++). Flex units can be added in *any* existing CSS engine. Particular mileage for particular engine may vary but magnitude is as such.

I'd rather start with something simpler that doesn't have these complications, where maybe we have a chance of defining sensible intrinsic dimensions in the presence of switches between horizontal and vertical layout (which is complicated enough already).

David, I have an impression that time to *start with* flexes passed years ago. And yet I do not think that CSS as a public standard has such luxury to "start with something simpler". Either flexes are there either not.

I think your solution does solve a pretty similar set of problems. But I disagree with your claim that it's simpler. I think by reusing the existing, complicated model, it's actually more complex than a cleaner break that introduces more new properties. (I'd even agree that there are advantages to reusing the same model; I just don't think simplicity is one of them.)

My solution (@flow + flex units) solve multiple existing problems: 1) vertical alignment and positioning, 2) flex layouts, 3) real sidebar/statusbar/toolbar layouts.

My solution is simpler in the following sense:

Each new attribute added to CSS potentially adds new dimension to the CSS space. Each attribute may affect others.

For example: by adding 'box-direction' you effectively create construction orthogonal to say 'direction' attribute. You need to spec and implement full matrix of intersection of their values. The same is about all other attributes you propose.

That is why I wouldn't say that your solution is less complex than mine.

http://terrainformatica.com