layout/reftests/w3c-css/submitted/flexbox/flexbox-baseline-multi-item-vert-1.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 <!-- Testcase for how we compute the baseline of a vertical 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 vertical 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-vert-1-ref.html">
michael@0 20 <meta charset="utf-8">
michael@0 21 <link rel="stylesheet" type="text/css" href="support/ahem.css" />
michael@0 22 <style>
michael@0 23 body {
michael@0 24 margin: 0;
michael@0 25 font: 20px Ahem;
michael@0 26 line-height: 20px;
michael@0 27 /* Baseline is 0.8em = 16px from top */
michael@0 28 }
michael@0 29 .flexContainer {
michael@0 30 display: inline-flex;
michael@0 31 flex-direction: column;
michael@0 32 background: lightblue;
michael@0 33 }
michael@0 34 .smallFont {
michael@0 35 font-size: 10px;
michael@0 36 line-height: 10px;
michael@0 37 /* Baseline is 0.8em = 8px from top */
michael@0 38 }
michael@0 39 .bigFont {
michael@0 40 font-size: 20px;
michael@0 41 line-height: 20px;
michael@0 42 /* Baseline is 0.8em = 16px from top */
michael@0 43 }
michael@0 44 </style>
michael@0 45 </head>
michael@0 46 <body>
michael@0 47 a
michael@0 48 <div class="flexContainer">
michael@0 49 <div class="smallFont">b</div
michael@0 50 ><div class="bigFont">c</div>
michael@0 51 </div>
michael@0 52 <div class="flexContainer">
michael@0 53 <div class="bigFont">d</div
michael@0 54 ><div class="smallFont">e</div>
michael@0 55 </div>
michael@0 56 </body>
michael@0 57 </html>

mercurial