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 | baseline-aligned items aligned using specific font-size / line-heights, |
michael@0 | 8 | and with unaligned children taken out of baseline-alignment using |
michael@0 | 9 | "vertical-align:top". |
michael@0 | 10 | --> |
michael@0 | 11 | <html> |
michael@0 | 12 | <head> |
michael@0 | 13 | <title>CSS Reftest Reference</title> |
michael@0 | 14 | <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"> |
michael@0 | 15 | <meta charset="utf-8"> |
michael@0 | 16 | <style> |
michael@0 | 17 | .flexContainer { |
michael@0 | 18 | display: inline-block; |
michael@0 | 19 | width: 40px; |
michael@0 | 20 | /* Split testcase's 40px height into 20px of padding-top and 20px of |
michael@0 | 21 | height, to set aside space for the testcase's (invisible) second line |
michael@0 | 22 | (which is above the first line, since this is wrap-reverse) */ |
michael@0 | 23 | height: 20px; |
michael@0 | 24 | padding-top: 20px; |
michael@0 | 25 | background: lightblue; |
michael@0 | 26 | } |
michael@0 | 27 | .flexContainer > * { |
michael@0 | 28 | width: 20px; |
michael@0 | 29 | display: inline-block; |
michael@0 | 30 | } |
michael@0 | 31 | |
michael@0 | 32 | .smallFont { |
michael@0 | 33 | font-size: 8px; |
michael@0 | 34 | line-height: 8px; |
michael@0 | 35 | } |
michael@0 | 36 | .medFont { |
michael@0 | 37 | font-size: 12px; |
michael@0 | 38 | line-height: 12px; |
michael@0 | 39 | } |
michael@0 | 40 | .bigFont { |
michael@0 | 41 | font-size: 16px; |
michael@0 | 42 | line-height: 16px; |
michael@0 | 43 | } |
michael@0 | 44 | .unaligned { vertical-align: top } |
michael@0 | 45 | </style> |
michael@0 | 46 | </head> |
michael@0 | 47 | <body> |
michael@0 | 48 | a |
michael@0 | 49 | <!-- Flex containers with flex items that have a mix of baselines: --> |
michael@0 | 50 | <div class="flexContainer medFont"> |
michael@0 | 51 | <div class="medFont">b</div |
michael@0 | 52 | ><div class="bigFont unaligned">c</div> |
michael@0 | 53 | </div> |
michael@0 | 54 | |
michael@0 | 55 | <div class="flexContainer bigFont"> |
michael@0 | 56 | <div class="bigFont">f</div |
michael@0 | 57 | ><div class="smallFont unaligned">g</div> |
michael@0 | 58 | </div> |
michael@0 | 59 | |
michael@0 | 60 | <!-- Flex container with second line baseline-aligned |
michael@0 | 61 | (shouldn't make a difference) --> |
michael@0 | 62 | <div class="flexContainer smallFont"> |
michael@0 | 63 | <div class="smallFont">j</div |
michael@0 | 64 | ><div class="bigFont unaligned">k</div> |
michael@0 | 65 | </div> |
michael@0 | 66 | n |
michael@0 | 67 | |
michael@0 | 68 | </body> |
michael@0 | 69 | </html> |