@@ -2323,13 +2323,39 @@ <h3 id=the-margin-properties><span class=secno>9.1. </span>The margin
23232323 < div class =issue >
23242324 < p > Add a stretch value to allow vertical distribution of blocks in a
23252325 fixed-height containing block? css3-flexbox currently (May 2012) proposes
2326- to use ‘< code class =css > auto</ code > ’, but in normal flow we need
2327- something else, because ‘< code class =css > auto</ code > ’ already means
2328- ‘< code class =css > 0</ code > ’ there.
2326+ to use ‘< code class =css > auto</ code > ’, but in normal flow we probably
2327+ need something else, because ‘< code class =css > auto</ code > ’ already
2328+ means ‘< code class =css > 0</ code > ’ there.
23292329
2330- < pre class =prod > < var > <stretch></ var > = fill( [ < a
2330+ < pre class =prod > < dfn id = ltstretchgt > <stretch></ dfn > = fill( [ < a
23312331 href ="#ltlengthgt "> < var > <length></ var > </ a > | < a
23322332 href ="#ltpercentagegt "> < var > <percentage></ var > </ a > ] )</ pre >
2333+
2334+ < p > This sets an elastic margin with a minimum thickness. Maybe it is
2335+ enough without the minimum thickness, i.e.:
2336+
2337+ < pre class =prod > < a
2338+ href ="#ltstretchgt "> < var > <stretch></ var > </ a > = fill</ pre >
2339+
2340+ < p > Collapsing margins of which at least one has a < a
2341+ href ="#ltstretchgt "> < var > <stretch></ var > </ a > value would yield
2342+ ‘< code class =css > fill(< var > M</ var > - < var > N</ var > ), or maybe just
2343+ </ code > ’fill'.
2344+
2345+ < p > To find the size of such a collapsed margin, find the nearest enclosing
2346+ containing block in the same flow that has a fixed height, call that
2347+ height < var > H1</ var > . Compute the height of the content in that
2348+ containing block (while treating ‘< code
2349+ class =css > fill(< var > P</ var > )</ code > ’ as if it was simply < var > P</ var > )
2350+ and call that height < var > H2</ var > . Count the number < var > N</ var > of
2351+ stretchable margins. If < var > H2</ var > < < var > H1</ var > , then increase
2352+ all the stretchable margins by (< var > H1</ var > -
2353+ < var > H2</ var > )/< var > N</ var > . If there is no such enclosing block,
2354+ ‘< code class =css > fill(< var > P</ var > )</ code > ’ simply means
2355+ < var > P</ var > .
2356+
2357+ < p > In a multi-column element, each column box is a separate containing
2358+ block for the purpose of stretching the margins.
23332359 </ div >
23342360
23352361 < p > These properties set the thickness of the < a
@@ -7829,6 +7855,9 @@ <h2 class=no-num id=index>Index</h2>
78297855 < li > static position, < a href ="#static-position "
78307856 title ="static position "> < strong > 14.6.</ strong > </ a >
78317857
7858+ < li > <stretch>, < a href ="#ltstretchgt "
7859+ title ="<stretch> "> < strong > 9.1.</ strong > </ a >
7860+
78327861 < li > SVG, < a href ="#svg " title =SVG > 5.</ a > , < a href ="#svg0 "
78337862 title =SVG > 5.</ a > , < a href ="#svg1 " title =SVG > 7.2.</ a > , < a href ="#svg2 "
78347863 title =SVG > 22.5.</ a >
0 commit comments