Wed, 31 Dec 2014 07:22:50 +0100
Correct previous dual key logic pending first delivery installment.
michael@0 | 1 | <!DOCTYPE html> |
michael@0 | 2 | <!-- |
michael@0 | 3 | Any copyright is dedicated to the Public Domain. |
michael@0 | 4 | http://creativecommons.org/publicdomain/zero/1.0/ |
michael@0 | 5 | --> |
michael@0 | 6 | <!-- Reference case, using inline-block instead of inline-flex, and with the |
michael@0 | 7 | unaligned children taken out of baseline-alignment with |
michael@0 | 8 | "vertical-align:top". |
michael@0 | 9 | --> |
michael@0 | 10 | <html> |
michael@0 | 11 | <head> |
michael@0 | 12 | <title>CSS Reftest Reference</title> |
michael@0 | 13 | <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"> |
michael@0 | 14 | <meta charset="utf-8"> |
michael@0 | 15 | <link rel="stylesheet" type="text/css" href="support/ahem.css" /> |
michael@0 | 16 | <style> |
michael@0 | 17 | body { |
michael@0 | 18 | margin: 0; |
michael@0 | 19 | font: 20px Ahem; |
michael@0 | 20 | line-height: 20px; |
michael@0 | 21 | /* Baseline is 0.8em = 16px from top */ |
michael@0 | 22 | } |
michael@0 | 23 | .flexContainer { |
michael@0 | 24 | display: inline-block; |
michael@0 | 25 | background: lightblue; |
michael@0 | 26 | } |
michael@0 | 27 | .hugeAndUnaligned { |
michael@0 | 28 | font-size: 35px; |
michael@0 | 29 | line-height: 35px; |
michael@0 | 30 | vertical-align: top; |
michael@0 | 31 | } |
michael@0 | 32 | .smallFont { |
michael@0 | 33 | font-size: 10px; |
michael@0 | 34 | line-height: 10px; |
michael@0 | 35 | /* Baseline is 0.8em = 8px from top */ |
michael@0 | 36 | } |
michael@0 | 37 | * { vertical-align: top } |
michael@0 | 38 | </style> |
michael@0 | 39 | </head> |
michael@0 | 40 | <body> |
michael@0 | 41 | <div style="display: inline-block; margin-top: 12px">a</div> |
michael@0 | 42 | <div class="flexContainer" style="margin-top: 20px"> |
michael@0 | 43 | <div class="smallFont">b</div |
michael@0 | 44 | ><div>c</div |
michael@0 | 45 | ><div class="hugeAndUnaligned">d</div> |
michael@0 | 46 | </div> |
michael@0 | 47 | <div class="flexContainer"> |
michael@0 | 48 | <div class="hugeAndUnaligned">e</div |
michael@0 | 49 | ><div>f</div |
michael@0 | 50 | ><div class="smallFont">g</div> |
michael@0 | 51 | </div> |
michael@0 | 52 | <div class="flexContainer"> |
michael@0 | 53 | <div class="hugeAndUnaligned">h</div |
michael@0 | 54 | ><div class="smallFont">i</div |
michael@0 | 55 | ><div>j</div> |
michael@0 | 56 | </div> |
michael@0 | 57 | </body> |
michael@0 | 58 | </html> |