Re: [CSS3] Flexible Flow Module, proposal.

I don't like this proposal, because:

1) What you call flows are actually XUL flexes, and thus should be
handled with the XUL box model.
Many of those properties are already implemented in Mozilla (with
-moz- prefix). You can find them at
<https://developer.mozilla.org/en/CSS_Reference/Mozilla_Extensions>
and you can find a proposal for the Flexible Box at
<http://damowmow.com/temp/csswg/flexbox.html>.
I'm sure that a more recent version of that is available as
member-only, since the Flexible Box Model is referenced in the Current
Work page for CSSWG.
(It would be great if the draft could be moved at the public cvs)

2) * units don't tokenize as DIMENSION, but rather as NUMBER followed
by DELIM. Use <fraction> and fr units instead (see Values and Units)
[CSS3SYNTAX] [CSS3VALUES]

3) Combining percentages and lengths with calc() makes flexible units
mostly useless. For example, if width:50%, margin-left:2* (2fr) with
margin-right:1* (1fr) is equivalent to margin-left:33,33%
margin-right:16,67%. If width was 500px, you could write:
margin-left:calc((100% - 500px) * 0.66); and margin-rigth:calc((100% -
500px) * 0.33);
This includes also the case where padding and borders are present.

4 The property for deciding how an element lays out its children is
"display-model". We don't need a new "flow" property for
that.[CSS3BOX]

5) The properties for deciding in what direction shall elements be
layed out are "block-flow" and "writing-mode". This means that
"horizontal" and "vertical" should be replaced by something not
necessarily top-bottom. [CSS3TEXTLAYOUT]

6) The property for deciding if a sequence of inline boxes is splitted
in various line boxes is "text-wrap", so "horizontal" and
"horizontal-flow" are the same [CSS3TEXT]

7) The properties for deciding if a sequence of block boxes is
splitted in various column boxes are "column-count" and
"column-width", so "vertical" and "vertical-flow" are the same
[CSS3MULTICOL]

Giovanni

Received on Saturday, 11 April 2009 15:23:28 UTC