3 Any copyright is dedicated to the Public Domain.
4 http://creativecommons.org/publicdomain/zero/1.0/
9 CSS Test: vertically-oriented
"display: -webkit-box" container,
10 with all the various -webkit-box-align values.
15 -webkit-box-orient: vertical;
16 border:
1px solid black;
18 float: left; /* For testing in
"rows" */
21 .box
> *:nth-child(
1) {
22 background: turquoise;
26 .box
> *:nth-child(
2) {
33 .bastart { -webkit-box-align: start; }
34 .bacenter { -webkit-box-align: center; }
35 .baend { -webkit-box-align: end; }
36 .babaseline { -webkit-box-align: baseline; }
37 .bastretch { -webkit-box-align: stretch; }
42 <!-- FIRST ROW: Default -webkit-box-align -->
43 <!-- intrinsically sized -->
45 <div>a
</div><div>b
</div>
48 <!-- explicit size, extra width -->
49 <div class=
"box" style=
"width: 36px">
50 <div>a
</div><div>b
</div>
53 <!-- explicit size, extra height -->
54 <div class=
"box" style=
"height: 40px">
55 <div>a
</div><div>b
</div>
58 <!-- explicit size, extra height and width -->
59 <div class=
"box" style=
"width: 36px; height: 40px">
60 <div>a
</div><div>b
</div>
64 <!-- SECOND ROW: -webkit-box-align: start -->
65 <!-- intrinsically sized -->
66 <div class=
"box bastart">
67 <div>a
</div><div>b
</div>
70 <!-- explicit size, extra width -->
71 <div class=
"box bastart" style=
"width: 36px">
72 <div>a
</div><div>b
</div>
75 <!-- explicit size, extra height -->
76 <div class=
"box bastart" style=
"height: 40px">
77 <div>a
</div><div>b
</div>
80 <!-- explicit size, extra height and width -->
81 <div class=
"box bastart" style=
"width: 36px; height: 40px">
82 <div>a
</div><div>b
</div>
86 <!-- THIRD ROW: -webkit-box-align: center -->
87 <!-- intrinsically sized -->
88 <div class=
"box bacenter">
89 <div>a
</div><div>b
</div>
92 <!-- explicit size, extra width -->
93 <div class=
"box bacenter" style=
"width: 36px">
94 <div>a
</div><div>b
</div>
97 <!-- explicit size, extra height -->
98 <div class=
"box bacenter" style=
"height: 40px">
99 <div>a
</div><div>b
</div>
102 <!-- explicit size, extra height and width -->
103 <div class=
"box bacenter" style=
"width: 36px; height: 40px">
104 <div>a
</div><div>b
</div>
108 <!-- FOURTH ROW: -webkit-box-align: end -->
109 <!-- intrinsically sized -->
110 <div class=
"box baend">
111 <div>a
</div><div>b
</div>
114 <!-- explicit size, extra width -->
115 <div class=
"box baend" style=
"width: 36px">
116 <div>a
</div><div>b
</div>
119 <!-- explicit size, extra height -->
120 <div class=
"box baend" style=
"height: 40px">
121 <div>a
</div><div>b
</div>
124 <!-- explicit size, extra height and width -->
125 <div class=
"box baend" style=
"width: 36px; height: 40px">
126 <div>a
</div><div>b
</div>
130 <!-- FIFTH ROW: -webkit-box-align: baseline -->
131 <!-- intrinsically sized -->
132 <div class=
"box babaseline">
133 <div>a
</div><div>b
</div>
136 <!-- explicit size, extra width -->
137 <div class=
"box babaseline" style=
"width: 36px">
138 <div>a
</div><div>b
</div>
141 <!-- explicit size, extra height -->
142 <div class=
"box babaseline" style=
"height: 40px">
143 <div>a
</div><div>b
</div>
146 <!-- explicit size, extra height and width -->
147 <div class=
"box babaseline" style=
"width: 36px; height: 40px">
148 <div>a
</div><div>b
</div>
151 <!-- SIXTH ROW: -webkit-box-align: stretch -->
152 <!-- intrinsically sized -->
153 <div class=
"box bastretch">
154 <div>a
</div><div>b
</div>
157 <!-- explicit size, extra width -->
158 <div class=
"box bastretch" style=
"width: 36px">
159 <div>a
</div><div>b
</div>
162 <!-- explicit size, extra height -->
163 <div class=
"box bastretch" style=
"height: 40px">
164 <div>a
</div><div>b
</div>
167 <!-- explicit size, extra height and width -->
168 <div class=
"box bastretch" style=
"width: 36px; height: 40px">
169 <div>a
</div><div>b
</div>