Skip to content

Commit f34b5ee

Browse files
committed
[css-flexbox] Add an example to flex layout section, and some commented out text for possible fixes.
--HG-- extra : rebase_source : fad4a0aa049c1c0f9100ee9aff55e875676ba271
1 parent becf47a commit f34b5ee

2 files changed

Lines changed: 46 additions & 10 deletions

File tree

css-flexbox/Overview.html

Lines changed: 30 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<meta content="CSS Flexible Box Layout Module" name=dcterms.title>
1313
<meta content=text name=dcterms.type>
14-
<meta content=2013-07-19 name=dcterms.date>
14+
<meta content=2013-07-23 name=dcterms.date>
1515
<meta content="Tab Atkins Jr." name=dcterms.creator>
1616
<meta content="Elika J. Etemad" name=dcterms.creator>
1717
<meta content="Rossen Atanassov" name=dcterms.creator>
@@ -224,11 +224,11 @@
224224
<h1 class=p-name id=head-box-flexible>CSS Flexible Box Layout Module</h1>
225225

226226
<h2 class="no-num no-toc" id=w3c-working>Editor's Draft, <time
227-
class=dt-updated datetime=20130719>19 July 2013</time></h2>
227+
class=dt-updated datetime=20130723>23 July 2013</time></h2>
228228

229229
<dl>
230230
<dt>This version:
231-
<!--<dd><a class="u-url" href="http://dev.w3.org/csswg/css3-flexbox/">http://www.w3.org/TR/2013/CR-css3-flexbox-20130719/</a>-->
231+
<!--<dd><a class="u-url" href="http://dev.w3.org/csswg/css3-flexbox/">http://www.w3.org/TR/2013/CR-css3-flexbox-20130723/</a>-->
232232

233233
<dd><a class=u-url
234234
href="http://dev.w3.org/csswg/css3-flexbox/">http://dev.w3.org/csswg/css3-flexbox/</a>
@@ -3091,11 +3091,33 @@ <h3 id=line-sizing><span class=secno>9.2. </span> Line Length Determination</h3>
30913091
<ol class=continue>
30923092
<li id=algo-available> <strong>Determine the available main and cross
30933093
space for the flex items.</strong> For each dimension, if that dimension
3094-
of the flex container is a <a href="#definite-size"><i>definite
3095-
size</i></a>, use that; otherwise, subtract the flex container's margin,
3096-
border, and padding from the space available to the flex container in
3097-
that dimension and use that value. <span class=note>This might result in
3098-
an infinite value.</span>
3094+
of the <a href="#flex-container"><i>flex container</i></a>’s content
3095+
box is a <a href="#definite-size"><i>definite size</i></a>, use that;
3096+
otherwise, subtract the <a href="#flex-container"><i>flex
3097+
container</i></a>’s margin, border, and padding from the space
3098+
available to the flex container in that dimension and use that value.
3099+
<span class=note>This might result in an infinite value.</span>
3100+
<!-- Maybe???
3101+
For this purpose,
3102+
the block axis of a block container(?)
3103+
always provides infinite available space.
3104+
-->
3105+
3106+
<div class=example>
3107+
<p>For example, the <i>available space</i> to a flex item in a <a
3108+
href="http://www.w3.org/TR/CSS21/visuren.html#floats">floated</a>
3109+
<code class=css>auto</code>’-sized <a
3110+
href="#flex-container"><i>flex container</i></a> is:
3111+
3112+
<ul>
3113+
<li>the width of the <a href="#flex-container"><i>flex
3114+
container</i></a>’s containing block minus the <a
3115+
href="#flex-container"><i>flex container</i></a>’s margin, border,
3116+
and padding in the horizontal dimension
3117+
3118+
<li>infinite in the vertical dimension
3119+
</ul>
3120+
</div>
30993121

31003122
<li id=algo-main-item> <strong>Determine the <dfn id=flex-base-size>flex
31013123
base size</dfn> and <dfn id=hypothetical-main-size>hypothetical main

css-flexbox/Overview.src.html

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2353,11 +2353,25 @@ <h3 id='line-sizing'>
23532353
<li id='algo-available'>
23542354
<strong>Determine the available main and cross space for the flex items.</strong>
23552355
For each dimension,
2356-
if that dimension of the flex container is a <i>definite size</i>, use that;
2357-
otherwise, subtract the flex container's margin, border, and padding
2356+
if that dimension of the <i>flex container</i>’s content box is a <i>definite size</i>, use that;
2357+
otherwise, subtract the <i>flex container</i>s margin, border, and padding
23582358
from the space available to the flex container in that dimension
23592359
and use that value.
23602360
<span class='note'>This might result in an infinite value.</span>
2361+
<!-- Maybe???
2362+
For this purpose,
2363+
the block axis of a block container(?)
2364+
always provides infinite available space.
2365+
-->
2366+
2367+
<div class='example'>
2368+
<p>For example, the <i>available space</i> to a flex item in a
2369+
<a href="http://www.w3.org/TR/CSS21/visuren.html#floats">floated</a> ''auto''-sized <i>flex container</i> is:
2370+
<ul>
2371+
<li>the width of the <i>flex container</i>’s containing block minus the <i>flex container</i>’s margin, border, and padding in the horizontal dimension
2372+
<li>infinite in the vertical dimension
2373+
</ul>
2374+
</div>
23612375

23622376
<li id='algo-main-item'>
23632377
<strong>Determine the <dfn>flex base size</dfn> and <dfn>hypothetical main size</dfn> of each item:</strong>

0 commit comments

Comments
 (0)