Skip to content

Commit d54eaad

Browse files
committed
Expand japanese-flow note with an example.
--HG-- extra : rebase_source : 9a98acf4c5ae9d031761ea73a3bbabb9f4f6398c
1 parent bd97a3f commit d54eaad

4 files changed

Lines changed: 105 additions & 19 deletions

File tree

css3-flexbox/Overview.html

Lines changed: 32 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1408,7 +1408,8 @@ <h3 id=flex-flow-property><span class=secno>5.3. </span> Flex Direction and
14081408
which together define the flex container's main and cross axes.
14091409

14101410
<div class=example>
1411-
<p>Some examples of valid flows:
1411+
<p>Some examples of valid flows in an English (left-to-right, horizontal
1412+
writing mode) document:
14121413

14131414
<table
14141415
style="margin: 0 auto; vertical-align: middle; border-spacing: 2em 1em;">
@@ -1426,10 +1427,8 @@ <h3 id=flex-flow-property><span class=secno>5.3. </span> Flex Direction and
14261427
<td>
14271428
<pre>
14281429
div { flex-flow: column wrap; }
1429-
/* Main-axis is block-direction and lines
1430-
wrap in the inline direction. For an
1431-
English page, the main-axis is top-to-bottom
1432-
and lines wrap to the right. */</pre>
1430+
/* Main-axis is block-direction (top to bottom)
1431+
and lines wrap in the inline direction (rightwards). */</pre>
14331432

14341433
<td><img alt height=160 src="images/flex-flow2.svg" width=89>
14351434

@@ -1444,11 +1443,34 @@ <h3 id=flex-flow-property><span class=secno>5.3. </span> Flex Direction and
14441443
</table>
14451444
</div>
14461445

1447-
<p class=note> Note that the ‘<a href="#flex-flow"><code
1448-
class=property>flex-flow</code></a>’ directions are <i>writing-mode</i>
1449-
sensitive. In vertical Japanese, for example, a ‘<a
1450-
href="#flex-flow-row"><code class=css>row</code></a>’ flexbox lays out
1451-
its contents from top to bottom.
1446+
<div class=note>
1447+
<p> Note that the ‘<a href="#flex-flow"><code
1448+
class=property>flex-flow</code></a>’ directions are <i>writing-mode</i>
1449+
sensitive. In vertical Japanese, for example, a ‘<a
1450+
href="#flex-flow-row"><code class=css>row</code></a>’ flexbox lays out
1451+
its contents from top to bottom, as seen in this example:
1452+
1453+
<table style="margin: 1em auto; text-align: center;">
1454+
<thead>
1455+
<tr>
1456+
<th>English
1457+
1458+
<th>Japanese
1459+
1460+
<tbody>
1461+
<tr>
1462+
<td>
1463+
<pre>flex-flow: row wrap;<br>writing-mode: horizontal-tb;</pre>
1464+
1465+
<td>
1466+
<pre>flex-flow: row wrap;<br>writing-mode: vertical-rl;</pre>
1467+
1468+
<tr>
1469+
<td><img alt src="images/flex-flow-english.svg">
1470+
1471+
<td><img alt src="images/flex-flow-japanese.svg">
1472+
</table>
1473+
</div>
14521474

14531475
<h3 id=order-property><span class=secno>5.4. </span> Display Order: the
14541476
<a href="#order"><code class=property>order</code></a>’ property</h3>

css3-flexbox/Overview.src.html

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -992,7 +992,7 @@ <h3 id='flex-flow-property'>
992992
which together define the flex container's main and cross axes.
993993

994994
<div class="example">
995-
<p>Some examples of valid flows:
995+
<p>Some examples of valid flows in an English (left-to-right, horizontal writing mode) document:
996996

997997
<table style="margin: 0 auto; vertical-align: middle; border-spacing: 2em 1em;">
998998
<tr>
@@ -1004,10 +1004,8 @@ <h3 id='flex-flow-property'>
10041004
<tr>
10051005
<td><pre>
10061006
div { flex-flow: column wrap; }
1007-
/* Main-axis is block-direction and lines
1008-
wrap in the inline direction. For an
1009-
English page, the main-axis is top-to-bottom
1010-
and lines wrap to the right. */</pre>
1007+
/* Main-axis is block-direction (top to bottom)
1008+
and lines wrap in the inline direction (rightwards). */</pre>
10111009
<td><img src='images/flex-flow2.svg' width=89 height=160 alt>
10121010
<tr>
10131011
<td><pre>
@@ -1018,10 +1016,28 @@ <h3 id='flex-flow-property'>
10181016
</table>
10191017
</div>
10201018

1021-
<p class='note'>
1022-
Note that the 'flex-flow' directions are <i>writing-mode</i> sensitive.
1023-
In vertical Japanese, for example,
1024-
a ''row'' flexbox lays out its contents from top to bottom.
1019+
<div class='note'>
1020+
<p>
1021+
Note that the 'flex-flow' directions are <i>writing-mode</i> sensitive.
1022+
In vertical Japanese, for example,
1023+
a ''row'' flexbox lays out its contents from top to bottom,
1024+
as seen in this example:
1025+
1026+
<table style="margin: 1em auto; text-align: center;">
1027+
<thead>
1028+
<tr>
1029+
<th>English
1030+
<th>Japanese
1031+
<tbody>
1032+
<tr>
1033+
<td><pre>flex-flow: row wrap;<br>writing-mode: horizontal-tb;</pre>
1034+
<td><pre>flex-flow: row wrap;<br>writing-mode: vertical-rl;</pre>
1035+
<tr>
1036+
<td><img src='images/flex-flow-english.svg' alt>
1037+
<td><img src='images/flex-flow-japanese.svg' alt>
1038+
</table>
1039+
</div>
1040+
10251041

10261042

10271043
<h3 id='order-property'>
Lines changed: 24 additions & 0 deletions
Loading
Lines changed: 24 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)