Skip to content

Commit b17e07e

Browse files
committed
Specify that flex-basis interacts with box-sizing.
1 parent 3306d92 commit b17e07e

2 files changed

Lines changed: 27 additions & 4 deletions

File tree

css3-flexbox/Overview.html

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1615,14 +1615,21 @@ <h3 id=flex-components><span class=secno>7.1. </span> Components of
16151615
class=property>flex-basis</code></a>’ property sets the <a
16161616
href="#flex-basis"><i>flex basis</i></a>. Negative lengths are invalid.
16171617

1618-
<p> If the <var>&lt;&apos;width&apos;></var> component is ‘<a
1619-
href="#flex-item-align-auto"><code class=css>auto</code></a>’ on a <a
1620-
href="#flexbox-item"><i>flexbox item</i></a>, the computed value of <a
1618+
<p> If the value is ‘<a href="#flex-item-align-auto"><code
1619+
class=css>auto</code></a>’ on a <a href="#flexbox-item"><i>flexbox
1620+
item</i></a>, the computed value of <a
16211621
href="#flex-basis0"><i>flex-basis</i></a> is the computed value of the
16221622
element's <a href="#main-size-property"><i>main size property</i></a>.
16231623
Otherwise, ‘<a href="#flex-item-align-auto"><code
16241624
class=css>auto</code></a>’ computes to itself.
16251625

1626+
<p> Like the ‘<code class=property>width</code>’ and ‘<code
1627+
class=property>height</code>’ properties, ‘<a
1628+
href="#flex-basis0"><code class=property>flex-basis</code></a>
1629+
determines the size of the content box, unless otherwise specified such as
1630+
by ‘<code class=property>box-sizing</code><a href="#CSS3UI"
1631+
rel=biblioentry>[CSS3UI]<!--{{CSS3UI}}--></a>.
1632+
16261633
<h2 id=alignment><span class=secno>8. </span> Alignment</h2>
16271634

16281635
<p> After a flexbox's contents have finished their flexing and the
@@ -3054,6 +3061,16 @@ <h3 class=no-num id=informative>Other references</h3>
30543061
<dl class=bibliography>
30553062
<dt style="display: none"><!-- keeps the doc valid if the DL is empty -->
30563063
<!---->
3064+
3065+
<dt id=CSS3UI>[CSS3UI]
3066+
3067+
<dd>Tantek Çelik. <a
3068+
href="http://www.w3.org/TR/2012/WD-css3-ui-20120117/"><cite>CSS Basic
3069+
User Interface Module Level 3 (CSS3 UI).</cite></a> 17 January 2012. W3C
3070+
Working Draft. (Work in progress.) URL: <a
3071+
href="http://www.w3.org/TR/2012/WD-css3-ui-20120117/">http://www.w3.org/TR/2012/WD-css3-ui-20120117/</a>
3072+
</dd>
3073+
<!---->
30573074
</dl>
30583075
<!--end-informative-->
30593076

css3-flexbox/Overview.src.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1070,10 +1070,16 @@ <h3 id='flex-components'>
10701070
Negative lengths are invalid.
10711071

10721072
<p>
1073-
If the <var>&lt;&apos;width&apos;></var> component is ''auto'' on a <i>flexbox item</i>,
1073+
If the value is ''auto'' on a <i>flexbox item</i>,
10741074
the computed value of <i>flex-basis</i> is the computed value of the element's <i>main size property</i>.
10751075
Otherwise,
10761076
''auto'' computes to itself.
1077+
1078+
<p>
1079+
Like the 'width' and 'height' properties,
1080+
'flex-basis' determines the size of the content box,
1081+
unless otherwise specified
1082+
such as by 'box-sizing' [[CSS3UI]].
10771083

10781084
<h2 id='alignment'>
10791085
Alignment</h2>

0 commit comments

Comments
 (0)