3 @import
"resources/width-keyword-classes.css";
6 border:
5px solid grey;
13 .container
> div:last-child {
14 border:
5px solid salmon;
17 display: -webkit-flex;
18 -webkit-flex-wrap: wrap;
23 display: inline-block;
26 background-color: pink;
33 border:
5px solid orange;
37 Tests that intrinsic width values on absolute positioned elements don't shrink to avoid floats.
39 <div class=
"container">
40 <div class=
"float">Float
</div>
41 <div class=
"min-width-min-content" data-expected-width=
120>
42 <div class=
"child">Child
1</div>
43 <div class=
"child">Child
2</div>
47 <div class=
"container">
48 <div class=
"float">Float
</div>
49 <div class=
"min-width-max-content" data-expected-width=
220>
50 <div class=
"child">Child
1</div>
51 <div class=
"child">Child
2</div>
55 <div class=
"container">
56 <div class=
"float">Float
</div>
57 <div class=
"min-width-fit-content" data-expected-width=
220>
58 <div class=
"child">Child
1</div>
59 <div class=
"child">Child
2</div>
63 <div class=
"container">
64 <div class=
"float">Float
</div>
65 <div class=
"min-width-fill-available" data-expected-width=
300>
66 <div class=
"child">Child
1</div>
67 <div class=
"child">Child
2</div>
71 <script src=
"../../resources/check-layout.js"></script>
73 checkLayout(".container");