4 <link href=
"resources/grid.css" rel=
"stylesheet">
7 width: -webkit-min-content;
8 height: -webkit-min-content;
16 border:
5px solid black;
33 <script src=
"../../resources/check-layout.js"></script>
35 <body onload=
"checkLayout('.grid');">
36 <p>This test checks that grid container size includes border, padding and scrollbar; ignoring margin as expected.
</p>
38 <div class=
"grid" data-expected-width=
"100" data-expected-height=
"100">
39 <div class=
"item" data-expected-width=
"100" data-expected-height=
"100"></div>
42 <div class=
"grid margin" data-expected-width=
"100" data-expected-height=
"100">
43 <div class=
"item" data-expected-width=
"100" data-expected-height=
"100"></div>
46 <div class=
"grid border" data-expected-width=
"110" data-expected-height=
"110">
47 <div class=
"item" data-expected-width=
"100" data-expected-height=
"100"></div>
50 <div class=
"grid padding" data-expected-width=
"140" data-expected-height=
"140">
51 <div class=
"item" data-expected-width=
"100" data-expected-height=
"100"></div>
54 <div class=
"grid scroll" data-expected-width=
"115" data-expected-height=
"115">
55 <div class=
"item" data-expected-width=
"100" data-expected-height=
"100"></div>
58 <div class=
"grid margin border" data-expected-width=
"110" data-expected-height=
"110">
59 <div class=
"item" data-expected-width=
"100" data-expected-height=
"100"></div>
62 <div class=
"grid margin padding" data-expected-width=
"140" data-expected-height=
"140">
63 <div class=
"item" data-expected-width=
"100" data-expected-height=
"100"></div>
66 <div class=
"grid margin scroll" data-expected-width=
"115" data-expected-height=
"115">
67 <div class=
"item" data-expected-width=
"100" data-expected-height=
"100"></div>
70 <div class=
"grid border padding" data-expected-width=
"150" data-expected-height=
"150">
71 <div class=
"item" data-expected-width=
"100" data-expected-height=
"100"></div>
74 <div class=
"grid border scroll" data-expected-width=
"125" data-expected-height=
"125">
75 <div class=
"item" data-expected-width=
"100" data-expected-height=
"100"></div>
78 <div class=
"grid padding scroll" data-expected-width=
"155" data-expected-height=
"155">
79 <div class=
"item" data-expected-width=
"100" data-expected-height=
"100"></div>
82 <div class=
"grid margin border padding" data-expected-width=
"150" data-expected-height=
"150">
83 <div class=
"item" data-expected-width=
"100" data-expected-height=
"100"></div>
86 <div class=
"grid margin border scroll" data-expected-width=
"125" data-expected-height=
"125">
87 <div class=
"item" data-expected-width=
"100" data-expected-height=
"100"></div>
90 <div class=
"grid margin padding scroll" data-expected-width=
"155" data-expected-height=
"155">
91 <div class=
"item" data-expected-width=
"100" data-expected-height=
"100"></div>
94 <div class=
"grid border padding scroll" data-expected-width=
"165" data-expected-height=
"165">
95 <div class=
"item" data-expected-width=
"100" data-expected-height=
"100"></div>
98 <div class=
"grid margin border padding scroll" data-expected-width=
"165" data-expected-height=
"165">
99 <div class=
"item" data-expected-width=
"100" data-expected-height=
"100"></div>