3 @import
"resources/width-keyword-classes.css";
6 border:
5px solid blue;
13 border:
5px solid pink;
16 display: -webkit-flex;
20 display: inline-block;
23 background-color: salmon;
27 Tests intrinsic width values on flex-items.
30 <div class=
"container">
31 <div class=
"child max-content" data-expected-width=
"210">
32 <div><div class=
"content"></div><div class=
"content"></div></div>
36 <div class=
"container">
37 <div class=
"child min-content" data-expected-width=
"110">
38 <div><div class=
"content"></div><div class=
"content"></div></div>
42 <div class=
"container">
43 <div class=
"child fit-content" data-expected-width=
"210">
44 <div><div class=
"content"></div><div class=
"content"></div></div>
48 <div class=
"container" style=
"width: 50px">
49 <div class=
"child fit-content" data-expected-width=
"110">
50 <div><div class=
"content"></div><div class=
"content"></div></div>
54 <div class=
"container">
55 <div class=
"child fill-available" data-expected-width=
"250">
56 <div><div class=
"content"></div><div class=
"content"></div></div>
60 <!-- min-width tests -->
61 <div class=
"container">
62 <div class=
"child min-width-max-content" style=
"width: 10px;" data-expected-width=
"210">
63 <div><div class=
"content"></div><div class=
"content"></div></div>
66 <div class=
"container">
67 <div class=
"child min-width-min-content" style=
"width: 10px;" data-expected-width=
"110">
68 <div><div class=
"content"></div><div class=
"content"></div></div>
72 <div class=
"container">
73 <div class=
"child min-width-fit-content" style=
"width: 10px;" data-expected-width=
"210">
74 <div><div class=
"content"></div><div class=
"content"></div></div>
78 <div class=
"container" style=
"width: 50px">
79 <div class=
"child min-width-fit-content" style=
"width: 10px;" data-expected-width=
"110">
80 <div><div class=
"content"></div><div class=
"content"></div></div>
84 <div class=
"container">
85 <div class=
"child min-width-fill-available" style=
"width: 10px;" data-expected-width=
"250">
86 <div><div class=
"content"></div><div class=
"content"></div></div>
90 <!-- max-width tests -->
91 <div class=
"container">
92 <div class=
"child max-width-max-content" style=
"width: 1000px; min-width: 0;" data-expected-width=
"210">
93 <div><div class=
"content"></div><div class=
"content"></div></div>
97 <div class=
"container">
98 <div class=
"child max-width-min-content" style=
"width: 1000px; min-width: 0;" data-expected-width=
"110">
99 <div><div class=
"content"></div><div class=
"content"></div></div>
103 <div class=
"container">
104 <div class=
"child max-width-fit-content" style=
"width: 1000px; min-width: 0;" data-expected-width=
"210">
105 <div><div class=
"content"></div><div class=
"content"></div></div>
109 <div class=
"container" style=
"width: 50px">
110 <div class=
"child max-width-fit-content" style=
"width: 1000px; min-width: 0;" data-expected-width=
"110">
111 <div><div class=
"content"></div><div class=
"content"></div></div>
115 <div class=
"container">
116 <div class=
"child max-width-fill-available" style=
"width: 1000px; min-width: 0;" data-expected-width=
"250">
117 <div><div class=
"content"></div><div class=
"content"></div></div>
121 <script src=
"../../resources/check-layout.js"></script>
123 checkLayout(".container");