3 Any copyright is dedicated to the Public Domain.
4 http://creativecommons.org/publicdomain/zero/1.0/
9 CSS Test:
"flex-basis" and
"flex" shouldn't impact child sizing inside of
10 vertical
"display: -webkit-box" container
15 -webkit-box-orient: vertical;
16 border:
1px solid black;
19 float: left; /* For testing in
"rows" */
23 .box
> *:nth-child(
1) { background: turquoise; }
24 .box
> *:nth-child(
2) { background: salmon; }
27 /* Used in some children here, to disable modern-flexbox's
28 "implied-minimum-size" feature, so that it can't inadvertantly
29 be the thing that makes our rendering match the reference . */
35 /* The point of this testcase is to verify that none of the modern-flexbox
36 styles below have any effect on the rendering. (This is worth checking
37 because we coopt our modern-flexbox implementation in our emulation of
38 legacy -webkit-box behavior.) */
39 .fb0 { flex-basis:
0; }
40 .f1 { flex:
1; /* This shorthand sets flex-grow:
1; flex-basis:
0 */ }
42 .fb30px { flex-basis:
30px; }
43 .f1_30px { flex:
1 30px; }
47 <!-- FIRST ROW: flex-basis is 0 -->
49 <div class=
"fb0">a
</div>
50 <div class=
"fb0 mh0">b
</div>
54 <div class=
"f1">a
</div>
55 <div class=
"f1 mh0">b
</div>
60 <!-- SECOND ROW: flex-basis is 30px -->
62 <div class=
"fb30px">a
</div>
63 <div class=
"fb30px mh0">b
</div>
67 <div class=
"f1_30px">a
</div>
68 <div class=
"f1_30px mh0">b
</div>