Skip to content

Commit 9bf9551

Browse files
committed
[css-flexbox] Make flex-wrap easier to read.
1 parent 60462d1 commit 9bf9551

File tree

2 files changed

+21
-30
lines changed

2 files changed

+21
-30
lines changed

css-flexbox/Overview.bs

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1056,30 +1056,25 @@ Flex Line Wrapping: the 'flex-wrap' property</h3>
10561056
<dt><dfn>nowrap</dfn>
10571057
<dd>
10581058
The flex container is <a>single-line</a>.
1059-
The <a>cross-start</a> direction is equivalent to either
1060-
the <a>inline-start</a>
1061-
or <a>block-start</a>
1062-
direction of the current <a>writing mode</a>,
1063-
whichever is in the <a>cross axis</a>,
1064-
and the <a>cross-end</a> direction is the opposite direction of <a>cross-start</a>.
1065-
10661059

10671060
<dt><dfn>wrap</dfn>
10681061
<dd>
10691062
The flex container is <a>multi-line</a>.
1070-
The <a>cross-start</a> direction is equivalent to either
1071-
the <a>inline-start</a>
1072-
or <a>block-start</a>
1073-
direction of the current <a>writing mode</a>,
1074-
whichever is in the <a>cross axis</a>,
1075-
and the <a>cross-end</a> direction is the opposite direction of <a>cross-start</a>.
10761063

10771064
<dt><dfn>wrap-reverse</dfn>
10781065
<dd>
1079-
Same as ''wrap'',
1080-
except the <a>cross-start</a> and <a>cross-end</a> directions are swapped.
1066+
Same as ''wrap''.
10811067
</dl>
10821068

1069+
For the values that are not ''wrap-reverse'',
1070+
the <a>cross-start</a> direction is equivalent to either
1071+
the <a>inline-start</a> or <a>block-start</a> direction of the current <a>writing mode</a>
1072+
(whichever is in the <a>cross axis</a>)
1073+
and the <a>cross-end</a> direction is the opposite direction of <a>cross-start</a>.
1074+
When 'flex-wrap' is ''wrap-reverse'',
1075+
the <a>cross-start</a> and <a>cross-end</a> directions
1076+
are swapped.
1077+
10831078
<!--
10841079
████████ ██ ████████ ██ ██ ████████ ██ ███████ ██ ██
10851080
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██

css-flexbox/Overview.html

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1806,36 +1806,32 @@ <h3 class="heading settled" data-level="5.2" id="flex-wrap-property"><span class
18061806

18071807
<dd>
18081808
The flex container is <a data-link-type="dfn" href="#single_line">single-line</a>.
1809-
The <a data-link-type="dfn" href="#cross_start">cross-start</a> direction is equivalent to either
1810-
the <a data-link-type="dfn" href="http://dev.w3.org/csswg/css-writing-modes-3/#inline_start">inline-start</a>
1811-
or <a data-link-type="dfn" href="http://dev.w3.org/csswg/css-writing-modes-3/#block_start">block-start</a>
1812-
direction of the current <a data-link-type="dfn" href="http://dev.w3.org/csswg/css-writing-modes-3/#writing-mode">writing mode</a>,
1813-
whichever is in the <a data-link-type="dfn" href="#cross-axis">cross axis</a>,
1814-
and the <a data-link-type="dfn" href="#cross_end">cross-end</a> direction is the opposite direction of <a data-link-type="dfn" href="#cross_start">cross-start</a>.
1815-
18161809

18171810

18181811
<dt><dfn class="css" data-dfn-for="flex-wrap" data-dfn-type="value" data-export="" id="valdef-flex-wrap-wrap">wrap<a class="self-link" href="#valdef-flex-wrap-wrap"></a></dfn>
18191812

18201813
<dd>
18211814
The flex container is <a data-link-type="dfn" href="#multi_line">multi-line</a>.
1822-
The <a data-link-type="dfn" href="#cross_start">cross-start</a> direction is equivalent to either
1823-
the <a data-link-type="dfn" href="http://dev.w3.org/csswg/css-writing-modes-3/#inline_start">inline-start</a>
1824-
or <a data-link-type="dfn" href="http://dev.w3.org/csswg/css-writing-modes-3/#block_start">block-start</a>
1825-
direction of the current <a data-link-type="dfn" href="http://dev.w3.org/csswg/css-writing-modes-3/#writing-mode">writing mode</a>,
1826-
whichever is in the <a data-link-type="dfn" href="#cross-axis">cross axis</a>,
1827-
and the <a data-link-type="dfn" href="#cross_end">cross-end</a> direction is the opposite direction of <a data-link-type="dfn" href="#cross_start">cross-start</a>.
18281815

18291816

18301817
<dt><dfn class="css" data-dfn-for="flex-wrap" data-dfn-type="value" data-export="" id="valdef-flex-wrap-wrap-reverse">wrap-reverse<a class="self-link" href="#valdef-flex-wrap-wrap-reverse"></a></dfn>
18311818

18321819
<dd>
1833-
Same as <a class="css" data-link-type="maybe" href="#valdef-flex-wrap-wrap">wrap</a>,
1834-
except the <a data-link-type="dfn" href="#cross_start">cross-start</a> and <a data-link-type="dfn" href="#cross_end">cross-end</a> directions are swapped.
1820+
Same as <a class="css" data-link-type="maybe" href="#valdef-flex-wrap-wrap">wrap</a>.
18351821

18361822
</dl>
18371823

18381824

1825+
<p>For the values that are not <a class="css" data-link-type="maybe" href="#valdef-flex-wrap-wrap-reverse">wrap-reverse</a>,
1826+
the <a data-link-type="dfn" href="#cross_start">cross-start</a> direction is equivalent to either
1827+
the <a data-link-type="dfn" href="http://dev.w3.org/csswg/css-writing-modes-3/#inline_start">inline-start</a> or <a data-link-type="dfn" href="http://dev.w3.org/csswg/css-writing-modes-3/#block_start">block-start</a> direction of the current <a data-link-type="dfn" href="http://dev.w3.org/csswg/css-writing-modes-3/#writing-mode">writing mode</a>
1828+
(whichever is in the <a data-link-type="dfn" href="#cross-axis">cross axis</a>)
1829+
and the <a data-link-type="dfn" href="#cross_end">cross-end</a> direction is the opposite direction of <a data-link-type="dfn" href="#cross_start">cross-start</a>.
1830+
When <a class="property" data-link-type="propdesc" href="#propdef-flex-wrap">flex-wrap</a> is <a class="css" data-link-type="maybe" href="#valdef-flex-wrap-wrap-reverse">wrap-reverse</a>,
1831+
the <a data-link-type="dfn" href="#cross_start">cross-start</a> and <a data-link-type="dfn" href="#cross_end">cross-end</a> directions
1832+
are swapped.</p>
1833+
1834+
18391835

18401836

18411837
<h3 class="heading settled" data-level="5.3" id="flex-flow-property"><span class="secno">5.3. </span><span class="content">

0 commit comments

Comments
 (0)