layout/reftests/w3c-css/submitted/flexbox/flexbox-baseline-multi-line-vert-2-ref.html

Thu, 15 Jan 2015 21:13:52 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:13:52 +0100
branch
TOR_BUG_9701
changeset 12
7540298fafa1
permissions
-rw-r--r--

Remove forgotten relic of ABI crash risk averse overloaded method change.

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 "float: left".
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 /* Split testcase's 40px width into 20px of padding-left and 20px of
michael@0 20 width, to set aside space for the testcase's (invisible) second line
michael@0 21 (which is to the left of the first line, since this is wrap-reverse)
michael@0 22 */
michael@0 23 width: 20px;
michael@0 24 padding-left: 20px;
michael@0 25 height: 40px;
michael@0 26 background: lightblue;
michael@0 27 }
michael@0 28 .flexContainer > * {
michael@0 29 width: 20px;
michael@0 30 height: 20px;
michael@0 31 display: inline-block;
michael@0 32 }
michael@0 33
michael@0 34 .smallFont {
michael@0 35 font-size: 8px;
michael@0 36 line-height: 8px;
michael@0 37 }
michael@0 38 .medFont {
michael@0 39 font-size: 12px;
michael@0 40 line-height: 12px;
michael@0 41 }
michael@0 42 .bigFont {
michael@0 43 font-size: 16px;
michael@0 44 line-height: 16px;
michael@0 45 }
michael@0 46 .unaligned { float: left }
michael@0 47 </style>
michael@0 48 </head>
michael@0 49 <body>
michael@0 50 a
michael@0 51 <!-- Flex containers with flex items that have a mix of baselines: -->
michael@0 52 <div class="flexContainer medFont">
michael@0 53 <div class="medFont">b</div
michael@0 54 ><br><div class="bigFont unaligned">c</div>
michael@0 55 </div>
michael@0 56
michael@0 57 <div class="flexContainer bigFont">
michael@0 58 <div class="bigFont">f</div
michael@0 59 ><br><div class="smallFont unaligned">g</div>
michael@0 60 </div>
michael@0 61
michael@0 62 <!-- Flex container with second line baseline-aligned
michael@0 63 (shouldn't make a difference) -->
michael@0 64 <div class="flexContainer smallFont">
michael@0 65 <div class="smallFont">j</div
michael@0 66 ><br><div class="bigFont unaligned">k</div>
michael@0 67 </div>
michael@0 68 n
michael@0 69
michael@0 70 </body>
michael@0 71 </html>

mercurial