5 border:
5px solid blue;
11 border:
5px solid pink;
15 Tests that intrinsic width values on absolutely positioned element work.
17 <!-- The 310px expected values are the 300px intrinsic width of an iframe plus 10px of border.
18 The 350px expected values are the iframe filling the 350px available width from the container.
22 <div class=
"container">
23 <iframe class=
"child" style=
"width: max-content;" data-expected-width=
"310"></iframe>
26 <div class=
"container">
27 <iframe class=
"child" style=
"width: min-content;" data-expected-width=
"310"></iframe>
30 <div class=
"container">
31 <iframe class=
"child" style=
"width: fit-content;" data-expected-width=
"310"></iframe>
34 <div class=
"container" style=
"width: 50px">
35 <iframe class=
"child" style=
"width: fit-content;" data-expected-width=
"310"></iframe>
38 <div class=
"container">
39 <iframe class=
"child" style=
"width: -webkit-fill-available;" data-expected-width=
"350"></iframe>
42 <!-- min-width tests -->
43 <div class=
"container">
44 <iframe class=
"child" style=
"min-width: max-content; width: 10px;" data-expected-width=
"310"></iframe>
47 <div class=
"container">
48 <iframe class=
"child" style=
"min-width: min-content; width: 10px;" data-expected-width=
"310"></iframe>
51 <div class=
"container">
52 <iframe class=
"child" style=
"min-width: fit-content; width: 10px;" data-expected-width=
"310"></iframe>
55 <div class=
"container" style=
"width: 50px">
56 <iframe class=
"child" style=
"min-width: fit-content; width: 10px;" data-expected-width=
"310"></iframe>
59 <div class=
"container">
60 <iframe class=
"child" style=
"min-width: -webkit-fill-available; width: 10px;" data-expected-width=
"350"></iframe>
63 <!-- max-width tests -->
64 <div class=
"container">
65 <iframe class=
"child" style=
"max-width: max-content; width: 1000px;" data-expected-width=
"310"></iframe>
68 <div class=
"container">
69 <iframe class=
"child" style=
"max-width: min-content; width: 1000px;" data-expected-width=
"310"></iframe>
72 <div class=
"container">
73 <iframe class=
"child" style=
"max-width: fit-content; width: 1000px;" data-expected-width=
"310"></iframe>
76 <div class=
"container" style=
"width: 50px">
77 <iframe class=
"child" style=
"max-width: fit-content; width: 1000px;" data-expected-width=
"310"></iframe>
80 <div class=
"container">
81 <iframe class=
"child" style=
"max-width: -webkit-fill-available; width: 1000px;" data-expected-width=
"350"></iframe>
84 <script src=
"../../resources/check-layout.js"></script>
86 checkLayout(".container");