| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html> |
| 2 <style> |
| 3 body { |
| 4 padding: 0; |
| 5 margin: 0; |
| 6 font: 10px Ahem; |
| 7 } |
| 8 .outside { |
| 9 height: 300px; |
| 10 } |
| 11 .inside { |
| 12 display: inline-block; |
| 13 width: 50px; |
| 14 } |
| 15 .tall { |
| 16 height: 120px; |
| 17 vertical-align: bottom; |
| 18 } |
| 19 .short { |
| 20 height: 85px; |
| 21 vertical-align: top; |
| 22 } |
| 23 .shorter { |
| 24 height: 65px; |
| 25 vertical-align: bottom; |
| 26 } |
| 27 div:nth-of-type(4) { |
| 28 height: 25px; |
| 29 vertical-align: top; |
| 30 } |
| 31 div:nth-of-type(5) { |
| 32 height: 150px; |
| 33 vertical-align: top; |
| 34 } |
| 35 div:nth-of-type(6) { |
| 36 height: 100px; |
| 37 vertical-align: middle; |
| 38 } |
| 39 div:nth-of-type(7) { |
| 40 height: 190px; |
| 41 vertical-align: bottom; |
| 42 } |
| 43 </style> |
| 44 <script src="../../resources/check-layout.js"></script> |
| 45 <div class="outside"> |
| 46 <div class="inside tall">1</div> |
| 47 <div class="inside short">2</div> |
| 48 <div class="inside shorter">3</div> |
| 49 <div class="inside">4</div> |
| 50 <div class="inside">5</div> |
| 51 <div class="inside">6</div> |
| 52 <div class="inside">7</div> |
| 53 <span id="line" data-total-y=136>crbug.com/604144: The middle-aligned contai
ner should line up with the text line.</span> |
| 54 </div> |
| 55 <div id="test-output"></div> |
| 56 <script> |
| 57 window.checkLayout("#line", document.getElementById("test-output")); |
| 58 </script> |
| OLD | NEW |