OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <!-- |
| 3 Any copyright is dedicated to the Public Domain. |
| 4 http://creativecommons.org/publicdomain/zero/1.0/ |
| 5 --> |
| 6 <!-- Reference case, using inline-block instead of inline-flex, and with the |
| 7 unaligned children taken out of baseline-alignment with |
| 8 "vertical-align:top". |
| 9 --> |
| 10 <html> |
| 11 <head> |
| 12 <title>CSS Reftest Reference</title> |
| 13 <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"> |
| 14 <meta charset="utf-8"> |
| 15 <style> |
| 16 body { |
| 17 margin: 0; |
| 18 font-size: 20px; |
| 19 line-height: 20px; |
| 20 } |
| 21 .flexContainer { |
| 22 display: inline-block; |
| 23 background: lightblue; |
| 24 vertical-align: top; |
| 25 } |
| 26 .hugeAndUnaligned { |
| 27 font-size: 35px; |
| 28 line-height: 35px; |
| 29 vertical-align: top; |
| 30 } |
| 31 .smallFont { |
| 32 font-size: 10px; |
| 33 line-height: 10px; |
| 34 } |
| 35 .flexContainer > * { display: inline; } |
| 36 </style> |
| 37 </head> |
| 38 <body> |
| 39 a |
| 40 <div class="flexContainer"> |
| 41 <div class="smallFont">b</div><div>c</div><div class="hugeAndUnaligned">d</d
iv> |
| 42 </div> |
| 43 <div class="flexContainer"> |
| 44 <div class="hugeAndUnaligned">e</div><div>f</div><div class="smallFont">g</d
iv> |
| 45 </div> |
| 46 <div class="flexContainer"> |
| 47 <div class="hugeAndUnaligned">h</div><div class="smallFont">i</div><div>j</d
iv> |
| 48 </div> |
| 49 </body> |
| 50 </html> |
OLD | NEW |