OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <style> | |
3 .containLayout { | |
4 contain: strict; | |
5 background-color: green; | |
6 } | |
7 .sized { | |
8 height: 10px; | |
9 width: 10px; | |
10 } | |
11 .overhangingFloat { | |
12 float: left; | |
13 width: 10px; | |
14 height: 50px; | |
15 background-color: papayawhip; | |
16 } | |
17 .inlineBlock { | |
18 display: inline-block; | |
19 } | |
20 #absolute { | |
21 position: absolute; | |
22 left: 200px; | |
23 top: 100px; | |
24 width: 10px; | |
25 } | |
26 </style> | |
27 | |
28 <div class="containLayout" data-expected-height=0><div class="sized"></div></div > | |
29 | |
30 <div class="containLayout sized" data-expected-height=10><div class="overhanging Float"></div></div> | |
31 | |
32 <div class="testContainer" data=expected-height=0> | |
33 <div class="containLayout" data-expected-height=0><div class="overhangingFlo at"></div></div> | |
34 </div> | |
35 | |
36 <div class="testContainer" data=expected-height=0> | |
37 <div class="containLayout inlineBlock" data-expected-height=0><div class="ov erhangingFloat"></div></div> | |
38 </div> | |
39 | |
40 <div class="testContainer" data=expected-height=10> | |
41 <div class="containLayout inlineBlock sized" data-expected-height=10><div cl ass="overhangingFloat"></div></div> | |
42 </div> | |
43 | |
44 <div id="absolute"> | |
szager1
2015/12/16 23:46:23
Might be a good idea to do another test case like
| |
45 <div class="overhangingFloat"></div> | |
46 <div class="containLayout sized" data-offset-y=50></div> | |
47 </div> | |
48 | |
49 <script src="../../../resources/check-layout.js"></script> | |
50 <script> | |
51 checkLayout('.containLayout'); | |
52 checkLayout('.testContainer'); | |
53 </script> | |
OLD | NEW |