layout/reftests/w3c-css/submitted/flexbox/flexbox-baseline-multi-item-horiz-1.html

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

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 <!-- Testcase for how we compute the baseline of a horizontal flex container
michael@0 7 with several flex items, none of which have "align-self:baseline". The
michael@0 8 spec says this about this case:
michael@0 9 ...if the flex container has at least one flex item, and its
michael@0 10 first flex item has a baseline parallel to the flex
michael@0 11 container's main axis, the flex container's main-axis
michael@0 12 baseline is that baseline.
michael@0 13 -->
michael@0 14 <html>
michael@0 15 <head>
michael@0 16 <title>CSS Test: Testing the baseline of a horizontal flex container whose flex items are not baseline-aligned</title>
michael@0 17 <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com">
michael@0 18 <link rel="help" href="http://www.w3.org/TR/css3-flexbox/#flex-baselines">
michael@0 19 <link rel="match" href="flexbox-baseline-multi-item-horiz-1-ref.html">
michael@0 20 <meta charset="utf-8">
michael@0 21 <style>
michael@0 22 .flexContainer {
michael@0 23 display: inline-flex;
michael@0 24 background: lightblue;
michael@0 25 }
michael@0 26 .smallFont {
michael@0 27 font-size: 10px;
michael@0 28 line-height: 10px;
michael@0 29 }
michael@0 30 .bigFont {
michael@0 31 font-size: 20px;
michael@0 32 line-height: 20px;
michael@0 33 }
michael@0 34 </style>
michael@0 35 </head>
michael@0 36 <body>
michael@0 37 a
michael@0 38 <div class="flexContainer">
michael@0 39 <div class="smallFont">b</div
michael@0 40 ><div class="bigFont">c</div>
michael@0 41 </div>
michael@0 42 <div class="flexContainer">
michael@0 43 <div class="bigFont">d</div
michael@0 44 ><div class="smallFont">e</div>
michael@0 45 </div>
michael@0 46 </body>
michael@0 47 </html>

mercurial