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

Fri, 16 Jan 2015 04:50:19 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 04:50:19 +0100
branch
TOR_BUG_9701
changeset 13
44a2da4a2ab2
permissions
-rw-r--r--

Replace accessor implementation with direct member state manipulation, by
request https://trac.torproject.org/projects/tor/ticket/9701#comment:32

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