Skip to content

Commit 8c8bee4

Browse files
committed
[css-flexbox] Spam the note warning against using flex-* components to all the sections.
1 parent edba909 commit 8c8bee4

2 files changed

Lines changed: 48 additions & 11 deletions

File tree

css-flexbox/Overview.bs

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1573,11 +1573,10 @@ Components of Flexibility</h3>
15731573
<p>
15741574
Individual components of flexibility can be controlled by independent longhand properties.
15751575

1576-
<p class='note'>
1577-
Authors are encouraged to control flexibility using the 'flex' shorthand
1578-
rather than with component properties,
1579-
as the shorthand correctly resets any unspecified components
1580-
to accommodate <a href="#flex-common">common uses</a>.
1576+
Note: Authors are encouraged to control flexibility using the 'flex' shorthand
1577+
rather than with component properties,
1578+
as the shorthand correctly resets any unspecified components
1579+
to accommodate <a href="#flex-common">common uses</a>.
15811580

15821581
<h4 id='flex-grow-property'>
15831582
The 'flex-grow' property</h4>
@@ -1593,6 +1592,11 @@ The 'flex-grow' property</h4>
15931592
Animatable: yes
15941593
</pre>
15951594

1595+
Note: Authors are encouraged to control flexibility using the 'flex' shorthand
1596+
rather than with component properties,
1597+
as the shorthand correctly resets any unspecified components
1598+
to accommodate <a href="#flex-common">common uses</a>.
1599+
15961600
<p>
15971601
The 'flex-grow' property sets the <i>flex grow factor</i>
15981602
to the provided <dfn value for=flex-grow><<number>></dfn>.
@@ -1612,6 +1616,11 @@ The 'flex-shrink' property</h4>
16121616
Animatable: yes
16131617
</pre>
16141618

1619+
Note: Authors are encouraged to control flexibility using the 'flex' shorthand
1620+
rather than with component properties,
1621+
as the shorthand correctly resets any unspecified components
1622+
to accommodate <a href="#flex-common">common uses</a>.
1623+
16151624
<p>
16161625
The 'flex-shrink' property sets the <i>flex shrink factor</i>
16171626
to the provided <dfn value for=flex-shrink><<number>></dfn>.
@@ -1632,6 +1641,11 @@ The 'flex-basis' property</h4>
16321641
Animatable: as 'width'
16331642
</pre>
16341643

1644+
Note: Authors are encouraged to control flexibility using the 'flex' shorthand
1645+
rather than with component properties,
1646+
as the shorthand correctly resets any unspecified components
1647+
to accommodate <a href="#flex-common">common uses</a>.
1648+
16351649
<p>
16361650
The 'flex-basis' property sets the <i>flex basis</i>.
16371651
It accepts the same values as the 'width' and 'height' property.
@@ -1640,6 +1654,9 @@ The 'flex-basis' property</h4>
16401654
The <dfn value for=flex-basis>main-size</dfn> keyword, when specified on a <i>flex item</i>,
16411655
retrieves the value of the <i>main size property</i>.
16421656

1657+
Issue: This value was originally named "auto",
1658+
but that was confusing
1659+
16431660
<p>
16441661
The <i>flex basis</i> is resolved the same way as 'width' in horizontal writing modes [[!CSS21]]:
16451662
percentage values of 'flex-basis' are resolved against

css-flexbox/Overview.html

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1614,17 +1614,21 @@ <h3 class="heading settled heading" data-level=7.3 id=flex-components><span clas
16141614
<p>
16151615
Individual components of flexibility can be controlled by independent longhand properties.
16161616

1617-
<p class=note>
1618-
Authors are encouraged to control flexibility using the <a class=property data-link-type=propdesc href=#propdef-flex title=flex>flex</a> shorthand
1619-
rather than with component properties,
1620-
as the shorthand correctly resets any unspecified components
1621-
to accommodate <a href=#flex-common>common uses</a>.
1617+
<p class=note>Note: Authors are encouraged to control flexibility using the <a class=property data-link-type=propdesc href=#propdef-flex title=flex>flex</a> shorthand
1618+
rather than with component properties,
1619+
as the shorthand correctly resets any unspecified components
1620+
to accommodate <a href=#flex-common>common uses</a>.</p>
16221621

16231622
<h4 class="heading settled heading" data-level=7.3.1 id=flex-grow-property><span class=secno>7.3.1 </span><span class=content>
16241623
The <a class=property data-link-type=propdesc href=#propdef-flex-grow title=flex-grow>flex-grow</a> property</span><a class=self-link href=#flex-grow-property></a></h4>
16251624

16261625
<table class="definition propdef"><tr><th>Name:<td><dfn class=css-code data-dfn-type=property data-export="" id=propdef-flex-grow>flex-grow<a class=self-link href=#propdef-flex-grow></a></dfn><tr><th>Value:<td class=prod><a class="production css-code" data-link-type=type href=http://dev.w3.org/csswg/css-values-3/#number-value title="<number>">&lt;number&gt;</a><tr><th>Initial:<td>0<tr><th>Applies to:<td><a data-link-type=dfn href=#flex-item title="flex items">flex items</a><tr><th>Inherited:<td>no<tr><th>Media:<td>visual<tr><th>Computed value:<td>specified value<tr><th>Animatable:<td>yes</table>
16271626

1627+
<p class=note>Note: Authors are encouraged to control flexibility using the <a class=property data-link-type=propdesc href=#propdef-flex title=flex>flex</a> shorthand
1628+
rather than with component properties,
1629+
as the shorthand correctly resets any unspecified components
1630+
to accommodate <a href=#flex-common>common uses</a>.</p>
1631+
16281632
<p>
16291633
The <a class=property data-link-type=propdesc href=#propdef-flex-grow title=flex-grow>flex-grow</a> property sets the <a data-link-type=dfn href=#flex-grow-factor title="flex grow factor">flex grow factor</a>
16301634
to the provided <dfn class=css-code data-dfn-for=flex-grow data-dfn-type=value data-export="" id=valuedef-number0><a class="production css-code" data-link-type=type href=http://dev.w3.org/csswg/css-values-3/#number-value title="<number>">&lt;number&gt;</a><a class=self-link href=#valuedef-number0></a></dfn>.
@@ -1635,6 +1639,11 @@ <h4 class="heading settled heading" data-level=7.3.2 id=flex-shrink-property><sp
16351639

16361640
<table class="definition propdef"><tr><th>Name:<td><dfn class=css-code data-dfn-type=property data-export="" id=propdef-flex-shrink>flex-shrink<a class=self-link href=#propdef-flex-shrink></a></dfn><tr><th>Value:<td class=prod><a class="production css-code" data-link-type=type href=http://dev.w3.org/csswg/css-values-3/#number-value title="<number>">&lt;number&gt;</a><tr><th>Initial:<td>1<tr><th>Applies to:<td><a data-link-type=dfn href=#flex-item title="flex items">flex items</a><tr><th>Inherited:<td>no<tr><th>Media:<td>visual<tr><th>Computed value:<td>specified value<tr><th>Animatable:<td>yes</table>
16371641

1642+
<p class=note>Note: Authors are encouraged to control flexibility using the <a class=property data-link-type=propdesc href=#propdef-flex title=flex>flex</a> shorthand
1643+
rather than with component properties,
1644+
as the shorthand correctly resets any unspecified components
1645+
to accommodate <a href=#flex-common>common uses</a>.</p>
1646+
16381647
<p>
16391648
The <a class=property data-link-type=propdesc href=#propdef-flex-shrink title=flex-shrink>flex-shrink</a> property sets the <a data-link-type=dfn href=#flex-shrink-factor title="flex shrink factor">flex shrink factor</a>
16401649
to the provided <dfn class=css-code data-dfn-for=flex-shrink data-dfn-type=value data-export="" id=valuedef-number><a class="production css-code" data-link-type=type href=http://dev.w3.org/csswg/css-values-3/#number-value title="<number>">&lt;number&gt;</a><a class=self-link href=#valuedef-number></a></dfn>.
@@ -1645,6 +1654,11 @@ <h4 class="heading settled heading" data-level=7.3.3 id=flex-basis-property><spa
16451654

16461655
<table class="definition propdef"><tr><th>Name:<td><dfn class=css-code data-dfn-type=property data-export="" id=propdef-flex-basis>flex-basis<a class=self-link href=#propdef-flex-basis></a></dfn><tr><th>Value:<td class=prod>main-size <a class=prod-punc data-link-type=grammar href=http://dev.w3.org/csswg/css-values-3/#comb-one title=|>|</a> <a class=production data-link-type=propdesc href=http://dev.w3.org/csswg/css2/visudet.html#propdef-width title=width>&lt;‘width’&gt;</a><tr><th>Initial:<td>main-size<tr><th>Applies to:<td><a data-link-type=dfn href=#flex-item title="flex items">flex items</a><tr><th>Inherited:<td>no<tr><th>Media:<td>visual<tr><th>Computed value:<td>as specified, with lengths made absolute<tr><th>Percentages:<td>relative to the <a data-link-type=dfn href=#flex-container title="flex container’s">flex container’s</a> inner <a data-link-type=dfn href=#main-size title="main size">main size</a><tr><th>Animatable:<td>as <a class=property data-link-type=propdesc href=http://dev.w3.org/csswg/css2/visudet.html#propdef-width title=width>width</a></table>
16471656

1657+
<p class=note>Note: Authors are encouraged to control flexibility using the <a class=property data-link-type=propdesc href=#propdef-flex title=flex>flex</a> shorthand
1658+
rather than with component properties,
1659+
as the shorthand correctly resets any unspecified components
1660+
to accommodate <a href=#flex-common>common uses</a>.</p>
1661+
16481662
<p>
16491663
The <a class=property data-link-type=propdesc href=#propdef-flex-basis title=flex-basis>flex-basis</a> property sets the <a data-link-type=dfn href=#flex-basis title="flex basis">flex basis</a>.
16501664
It accepts the same values as the <a class=property data-link-type=propdesc href=http://dev.w3.org/csswg/css2/visudet.html#propdef-width title=width>width</a> and <a class=property data-link-type=propdesc href=http://dev.w3.org/csswg/css2/visudet.html#propdef-height title=height>height</a> property.
@@ -1653,6 +1667,9 @@ <h4 class="heading settled heading" data-level=7.3.3 id=flex-basis-property><spa
16531667
The <dfn class=css-code data-dfn-for=flex-basis data-dfn-type=value data-export="" id=valuedef-main-size>main-size<a class=self-link href=#valuedef-main-size></a></dfn> keyword, when specified on a <a data-link-type=dfn href=#flex-item title="flex item">flex item</a>,
16541668
retrieves the value of the <a data-link-type=dfn href=#main-size-property title="main size property">main size property</a>.
16551669

1670+
<p class=issue id=issue-cdba524f><a class=self-link href=#issue-cdba524f></a>This value was originally named "auto",
1671+
but that was confusing</p>
1672+
16561673
<p>
16571674
The <a data-link-type=dfn href=#flex-basis title="flex basis">flex basis</a> is resolved the same way as <a class=property data-link-type=propdesc href=http://dev.w3.org/csswg/css2/visudet.html#propdef-width title=width>width</a> in horizontal writing modes <a data-biblio-type=normative data-link-type=biblio href=#biblio-css21 title=biblio-css21>[CSS21]</a>:
16581675
percentage values of <a class=property data-link-type=propdesc href=#propdef-flex-basis title=flex-basis>flex-basis</a> are resolved against
@@ -3781,7 +3798,10 @@ <h2 class="no-num heading settled" id=issues-index><span class=content>Issues In
37813798
because 2.1 is incoherent about what "static position" really is.<a href=#issue-bb26f057></a></div>
37823799

37833800
<div class=issue>Audit this for correctness.<a href=#issue-3e8af8e3></a></div>
3784-
<div class=issue>These two algorithms should give the same result.
3801+
<div class=issue>This value was originally named "auto",
3802+
but that was confusing<a href=#issue-cdba524f></a></div>
3803+
3804+
<div class=issue>These two algorithms should give the same result.
37853805
Please let us know which is more understandable,
37863806
and also if you notice any discrepencies.<a href=#issue-1b47c007></a></div>
37873807

0 commit comments

Comments
 (0)