Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css-intrinsic-dimensions / intrinsic-sized-blocks.html
blob925a6c2128fcf8dd5505c3702da2d6d7bbe2e607
1 <!DOCTYPE html>
2 <style>
3 .container {
4 border: 5px solid blue;
5 width: 250px;
6 height: 250px;
8 .child {
9 border: 5px solid pink;
11 .content {
12 display: inline-block;
13 width: 100px;
14 height: 100px;
15 background-color: salmon;
17 </style>
19 Tests that intrinsic width values on blocks work.
21 <!-- width tests -->
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>
25 </div>
26 </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>
31 </div>
32 </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>
37 </div>
38 </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>
43 </div>
44 </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>
49 </div>
50 </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>
56 </div>
57 </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>
62 </div>
63 </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>
68 </div>
69 </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>
74 </div>
75 </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>
80 </div>
81 </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>
87 </div>
88 </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>
93 </div>
94 </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>
99 </div>
100 </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>
105 </div>
106 </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>
111 </div>
112 </div>
116 <script src="../../resources/check-layout.js"></script>
117 <script>
118 checkLayout(".container");
119 </script>