4 border:
5px solid blue;
9 border:
5px solid pink;
12 display: inline-block;
15 background-color: salmon;
19 Tests that intrinsic width values on blocks work.
22 <div class=
"container">
23 <div class=
"child" style=
"width: max-content;" data-expected-width=
"210">
24 <div class=
"content"></div><div class=
"content"></div>
28 <div class=
"container">
29 <div class=
"child" style=
"width: min-content;" data-expected-width=
"110">
30 <div class=
"content"></div><div class=
"content"></div>
34 <div class=
"container">
35 <div class=
"child" style=
"width: fit-content;" data-expected-width=
"210">
36 <div class=
"content"></div><div class=
"content"></div>
40 <div class=
"container" style=
"width: 50px">
41 <div class=
"child" style=
"width: fit-content;" data-expected-width=
"110">
42 <div class=
"content"></div><div class=
"content"></div>
46 <div class=
"container">
47 <div class=
"child" style=
"width: -webkit-fill-available;" data-expected-width=
"250">
48 <div class=
"content"></div><div class=
"content"></div>
52 <!-- min-width tests -->
53 <div class=
"container">
54 <div class=
"child" style=
"min-width: max-content; width: 10px;" data-expected-width=
"210">
55 <div class=
"content"></div><div class=
"content"></div>
59 <div class=
"container">
60 <div class=
"child" style=
"min-width: min-content; width: 10px;" data-expected-width=
"110">
61 <div class=
"content"></div><div class=
"content"></div>
65 <div class=
"container">
66 <div class=
"child" style=
"min-width: fit-content; width: 10px;" data-expected-width=
"210">
67 <div class=
"content"></div><div class=
"content"></div>
71 <div class=
"container" style=
"width: 50px">
72 <div class=
"child" style=
"min-width: fit-content; width: 10px;" data-expected-width=
"110">
73 <div class=
"content"></div><div class=
"content"></div>
77 <div class=
"container">
78 <div class=
"child" style=
"min-width: -webkit-fill-available; width: 10px;" data-expected-width=
"250">
79 <div class=
"content"></div><div class=
"content"></div>
83 <!-- max-width tests -->
84 <div class=
"container">
85 <div class=
"child" style=
"max-width: max-content; width: 1000px;" data-expected-width=
"210">
86 <div class=
"content"></div><div class=
"content"></div>
90 <div class=
"container">
91 <div class=
"child" style=
"max-width: min-content; width: 1000px;" data-expected-width=
"110">
92 <div class=
"content"></div><div class=
"content"></div>
96 <div class=
"container">
97 <div class=
"child" style=
"max-width: fit-content; width: 1000px;" data-expected-width=
"210">
98 <div class=
"content"></div><div class=
"content"></div>
102 <div class=
"container" style=
"width: 50px">
103 <div class=
"child" style=
"max-width: fit-content; width: 1000px;" data-expected-width=
"110">
104 <div class=
"content"></div><div class=
"content"></div>
108 <div class=
"container">
109 <div class=
"child" style=
"max-width: -webkit-fill-available; width: 1000px;" data-expected-width=
"250">
110 <div class=
"content"></div><div class=
"content"></div>
116 <script src=
"../../resources/check-layout.js"></script>
118 checkLayout(".container");