OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 </head> |
| 5 <body> |
| 6 <style> |
| 7 .table { |
| 8 display: table; |
| 9 border-collapse: collapse; |
| 10 border: 25px solid green; |
| 11 border-top: 10px solid cyan; |
| 12 position: absolute; |
| 13 box-sizing: border-box; |
| 14 outline: 5px solid blue; |
| 15 } |
| 16 .tbody { display: table-row-group; } |
| 17 .tr { display: table-row; } |
| 18 .td { display: table-cell; } |
| 19 .block { |
| 20 background-color: yellow; |
| 21 height: 50px; |
| 22 width: 50px; |
| 23 } |
| 24 </style> |
| 25 <script src="../../resources/check-layout.js"></script> |
| 26 <script> |
| 27 window.onload = function () { |
| 28 checkLayout(".table"); |
| 29 } |
| 30 </script> |
| 31 <div class="table" data-expected-height="85px"> |
| 32 <div class="tbody"> |
| 33 <div class="tr"> |
| 34 <div class="td"> |
| 35 <div class="block"></div> |
| 36 </div> |
| 37 </div> |
| 38 </div> |
| 39 </div> |
| 40 <div style="top: 200px;" class="table" data-expected-height="85px"> |
| 41 <div class="tbody"> |
| 42 <div class="tr"> |
| 43 <div class="td"> |
| 44 <div class="block"></div> |
| 45 </div> |
| 46 </div> |
| 47 </div> |
| 48 </div> |
| 49 <div style="bottom: 100px;" class="table" data-expected-height="85px"> |
| 50 <div class="tbody"> |
| 51 <div class="tr"> |
| 52 <div class="td"> |
| 53 <div class="block"></div> |
| 54 </div> |
| 55 </div> |
| 56 </div> |
| 57 </div> |
| 58 </body> |
| 59 </html> |
OLD | NEW |