3 Any copyright is dedicated to the Public Domain.
4 http://creativecommons.org/publicdomain/zero/1.0/
14 border:
1px solid black;
16 float: left; /* For testing in
"rows" */
19 .box
> *:nth-child(
1) {
20 background: turquoise;
21 margin:
2px
4px
6px
8px;
22 border:
1px solid blue;
23 padding:
4px
3px
2px
1px;
25 .box
> *:nth-child(
2) {
27 margin:
9px
3px
7px
5px;
28 border:
2px solid purple;
29 padding:
6px
7px
8px
9px;
32 .rtl { direction: rtl; }
38 flex-direction: row-reverse;
41 flex-direction: column;
44 flex-direction: column-reverse;
50 <!-- FIRST ROW: '-webkit-box-orient: horizontal', default 'direction' -->
51 <div class=
"box horizNormal">
52 <div>a
</div><div>b
</div>
54 <div class=
"box horizReverse">
55 <div>a
</div><div>b
</div>
60 <!-- SECOND ROW: '-webkit-box-orient: horizontal', 'direction: rtl' -->
61 <div class=
"box horizNormal rtl">
62 <div>a
</div><div>b
</div>
64 <div class=
"box horizReverse rtl">
65 <div>a
</div><div>b
</div>
70 <!-- THIRD ROW: '-webkit-box-orient: vertical', default 'direction' -->
71 <div class=
"box vertNormal">
72 <div>a
</div><div>b
</div>
74 <div class=
"box vertReverse">
75 <div>a
</div><div>b
</div>
80 <!-- FOURTH ROW: '-webkit-box-orient: vertical', 'direction: rtl' -->
81 <div class=
"box vertNormal rtl">
82 <div>a
</div><div>b
</div>
84 <div class=
"box vertReverse rtl">
85 <div>a
</div><div>b
</div>