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 horizontal
"display: -webkit-box" container
15 border:
1px solid black;
18 float: left; /* For testing in
"rows" */
22 .box
> *:nth-child(
1) { background: turquoise; }
23 .box
> *:nth-child(
2) { background: salmon; }
26 /* Used in some children here, to disable modern-flexbox's
27 "implied-minimum-size" feature, so that it can't inadvertantly
28 be the thing that makes our rendering match the reference . */
34 /* The point of this testcase is to verify that none of the modern-flexbox
35 styles below have any effect on the rendering. (This is worth checking
36 because we coopt our modern-flexbox implementation in our emulation of
37 legacy -webkit-box behavior.) */
38 .fb0 { flex-basis:
0; }
39 .f1 { flex:
1; /* This shorthand sets flex-grow:
1; flex-basis:
0 */ }
41 .fb30px { flex-basis:
30px; }
42 .f1_30px { flex:
1 30px; }
46 <!-- FIRST ROW: flex-basis is 0 -->
48 <div class=
"fb0">a
</div>
49 <div class=
"fb0 mw0">b
</div>
53 <div class=
"f1">a
</div>
54 <div class=
"f1 mw0">b
</div>
59 <!-- SECOND ROW: flex-basis is 30px -->
61 <div class=
"fb30px">a
</div>
62 <div class=
"fb30px mw0">b
</div>
66 <div class=
"f1_30px">a
</div>
67 <div class=
"f1_30px mw0">b
</div>