5 border:
5px solid blue;
11 display: -webkit-flex;
12 -webkit-flex-wrap: wrap;
13 border:
5px solid pink;
16 display: inline-block;
19 background-color: salmon;
23 Tests that intrinsic width values on absolutely positioned element work.
26 <div class=
"container">
27 <div class=
"child" style=
"width: max-content;" data-expected-width=
"210">
28 <div class=
"content"></div>
29 <div class=
"content"></div>
33 <div class=
"container">
34 <div class=
"child" style=
"width: min-content;" data-expected-width=
"110">
35 <div class=
"content"></div>
36 <div class=
"content"></div>
40 <div class=
"container">
41 <div class=
"child" style=
"width: fit-content;" data-expected-width=
"210">
42 <div class=
"content"></div>
43 <div class=
"content"></div>
47 <div class=
"container" style=
"width: 50px">
48 <div class=
"child" style=
"width: fit-content;" data-expected-width=
"110">
49 <div class=
"content"></div>
50 <div class=
"content"></div>
54 <div class=
"container">
55 <div class=
"child" style=
"width: -webkit-fill-available;" data-expected-width=
"250">
56 <div class=
"content"></div>
57 <div class=
"content"></div>
61 <!-- min-width tests -->
62 <div class=
"container">
63 <div class=
"child" style=
"min-width: max-content; width: 10px;" data-expected-width=
"210">
64 <div class=
"content"></div>
65 <div class=
"content"></div>
69 <div class=
"container">
70 <div class=
"child" style=
"min-width: min-content; width: 10px;" data-expected-width=
"110">
71 <div class=
"content"></div>
72 <div class=
"content"></div>
76 <div class=
"container">
77 <div class=
"child" style=
"min-width: fit-content; width: 10px;" data-expected-width=
"210">
78 <div class=
"content"></div>
79 <div class=
"content"></div>
83 <div class=
"container" style=
"width: 50px">
84 <div class=
"child" style=
"min-width: fit-content; width: 10px;" data-expected-width=
"110">
85 <div class=
"content"></div>
86 <div class=
"content"></div>
90 <div class=
"container">
91 <div class=
"child" style=
"min-width: -webkit-fill-available; width: 10px;" data-expected-width=
"250">
92 <div class=
"content"></div>
93 <div class=
"content"></div>
97 <!-- max-width tests -->
98 <div class=
"container">
99 <div class=
"child" style=
"max-width: max-content; width: 1000px;" data-expected-width=
"210">
100 <div class=
"content"></div>
101 <div class=
"content"></div>
105 <div class=
"container">
106 <div class=
"child" style=
"max-width: min-content; width: 1000px;" data-expected-width=
"110">
107 <div class=
"content"></div>
108 <div class=
"content"></div>
112 <div class=
"container">
113 <div class=
"child" style=
"max-width: fit-content; width: 1000px;" data-expected-width=
"210">
114 <div class=
"content"></div>
115 <div class=
"content"></div>
119 <div class=
"container" style=
"width: 50px">
120 <div class=
"child" style=
"max-width: fit-content; width: 1000px;" data-expected-width=
"110">
121 <div class=
"content"></div>
122 <div class=
"content"></div>
126 <div class=
"container">
127 <div class=
"child" style=
"max-width: -webkit-fill-available; width: 1000px;" data-expected-width=
"250">
128 <div class=
"content"></div>
129 <div class=
"content"></div>
135 <script src=
"../../resources/check-layout.js"></script>
137 checkLayout(".container");