3 @import
"resources/width-keyword-classes.css";
6 border:
5px solid blue;
11 -webkit-flex-direction: column;
12 flex-direction: column;
15 border:
5px solid pink;
18 display: -webkit-flex;
22 display: inline-block;
25 background-color: salmon;
29 Tests intrinsic width values on flex-items.
32 <div class=
"container">
33 <div class=
"child max-content" data-expected-width=
"210">
34 <div><div class=
"content"></div><div class=
"content"></div></div>
38 <div class=
"container">
39 <div class=
"child min-content" data-expected-width=
"110">
40 <div><div class=
"content"></div><div class=
"content"></div></div>
44 <div class=
"container">
45 <div class=
"child fit-content" data-expected-width=
"210">
46 <div><div class=
"content"></div><div class=
"content"></div></div>
50 <div class=
"container" style=
"width: 50px">
51 <div class=
"child fit-content" data-expected-width=
"110">
52 <div><div class=
"content"></div><div class=
"content"></div></div>
56 <div class=
"container">
57 <div class=
"child fill-available" data-expected-width=
"250">
58 <div><div class=
"content"></div><div class=
"content"></div></div>
62 <!-- min-width tests -->
63 <div class=
"container">
64 <div class=
"child min-width-max-content" style=
"width: 10px;" data-expected-width=
"210">
65 <div><div class=
"content"></div><div class=
"content"></div></div>
68 <div class=
"container">
69 <div class=
"child min-width-min-content" style=
"width: 10px;" data-expected-width=
"110">
70 <div><div class=
"content"></div><div class=
"content"></div></div>
74 <div class=
"container">
75 <div class=
"child min-width-fit-content" style=
"width: 10px;" data-expected-width=
"210">
76 <div><div class=
"content"></div><div class=
"content"></div></div>
80 <div class=
"container" style=
"width: 50px">
81 <div class=
"child min-width-fit-content" style=
"width: 10px;" data-expected-width=
"110">
82 <div><div class=
"content"></div><div class=
"content"></div></div>
86 <div class=
"container">
87 <div class=
"child min-width-fill-available" style=
"width: 10px;" data-expected-width=
"250">
88 <div><div class=
"content"></div><div class=
"content"></div></div>
92 <!-- max-width tests -->
93 <div class=
"container">
94 <div class=
"child max-width-max-content" style=
"width: 1000px; min-width: 0;" data-expected-width=
"210">
95 <div><div class=
"content"></div><div class=
"content"></div></div>
99 <div class=
"container">
100 <div class=
"child max-width-min-content" style=
"width: 1000px; min-width: 0;" data-expected-width=
"110">
101 <div><div class=
"content"></div><div class=
"content"></div></div>
105 <div class=
"container">
106 <div class=
"child max-width-fit-content" style=
"width: 1000px; min-width: 0;" data-expected-width=
"210">
107 <div><div class=
"content"></div><div class=
"content"></div></div>
111 <div class=
"container" style=
"width: 50px">
112 <div class=
"child max-width-fit-content" style=
"width: 1000px; min-width: 0;" data-expected-width=
"110">
113 <div><div class=
"content"></div><div class=
"content"></div></div>
117 <div class=
"container">
118 <div class=
"child max-width-fill-available" style=
"width: 1000px; min-width: 0;" data-expected-width=
"250">
119 <div><div class=
"content"></div><div class=
"content"></div></div>
123 <script src=
"../../resources/check-layout.js"></script>
125 checkLayout(".container");