| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 | 2 |
| 3 <style> | 3 <style> |
| 4 .item { height: 50px; width: 50px; border: 1px solid blue; } | 4 .item { height: 50px; width: 50px; border: 1px solid blue; } |
| 5 | 5 |
| 6 .container { height: 100px; border: 5px solid pink; } | 6 .container { height: 100px; border: 5px solid pink; } |
| 7 .table { border: 2px solid red; display: table; border-spacing: 2px; } | 7 .table { border: 2px solid red; display: table; border-spacing: 2px; } |
| 8 .td { border: 2px solid green; display: table-cell; } | 8 .td { border: 2px solid green; display: table-cell; } |
| 9 </style> | 9 </style> |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 </div> | 21 </div> |
| 22 | 22 |
| 23 <div class="container"> | 23 <div class="container"> |
| 24 <div class="table" style="height: 100%; box-sizing: border-box;"> | 24 <div class="table" style="height: 100%; box-sizing: border-box;"> |
| 25 <div class="td"> | 25 <div class="td"> |
| 26 <div class="item"></div> | 26 <div class="item"></div> |
| 27 </div> | 27 </div> |
| 28 </div> | 28 </div> |
| 29 </div> | 29 </div> |
| 30 | 30 |
| 31 | 31 <!-- crbug.com/690087: We use 99px instead of 100px because we end up discarding
1px when trying |
| 32 <div class="table container" style="display: block; float: left; height: 98px;"> | 32 to allocate the spare pixels to the table. --> |
| 33 <div class="td" style="height: 90px;" style="display: block;"> | 33 <div class="table container" style="display: block; float: left; height: 99px;"> |
| 34 <div class="td" style="height: 91px;" style="display: block;"> |
| 34 <div class="item"></div> | 35 <div class="item"></div> |
| 35 </div> | 36 </div> |
| 36 </div> | 37 </div> |
| OLD | NEW |