layout/reftests/w3c-css/submitted/flexbox/flexbox-baseline-multi-line-horiz-4.html

Thu, 15 Jan 2015 15:55:04 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:55:04 +0100
branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
permissions
-rw-r--r--

Back out 97036ab72558 which inappropriately compared turds to third parties.

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 <html>
michael@0 7 <head>
michael@0 8 <title>CSS Test: Testing the baseline of a horizontal multi-line (wrap-reverse) flex container with baseline-aligned items on first line</title>
michael@0 9 <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com">
michael@0 10 <link rel="help" href="http://www.w3.org/TR/css3-flexbox/#flex-baselines">
michael@0 11 <link rel="match" href="flexbox-baseline-multi-line-horiz-4-ref.html">
michael@0 12 <meta charset="utf-8">
michael@0 13 <style>
michael@0 14 .flexContainer {
michael@0 15 display: inline-flex;
michael@0 16 flex-wrap: wrap-reverse;
michael@0 17 width: 40px;
michael@0 18 height: 100px;
michael@0 19 background: lightgray;
michael@0 20
michael@0 21 /* Use "align-content", to test that packing space is considered when
michael@0 22 getting container's baseline from its first FlexLine:*/
michael@0 23 align-content: center;
michael@0 24 }
michael@0 25 .flexContainer > * {
michael@0 26 width: 20px;
michael@0 27 }
michael@0 28
michael@0 29 .smallFont {
michael@0 30 font-size: 8px;
michael@0 31 line-height: 8px;
michael@0 32 }
michael@0 33 .medFont {
michael@0 34 font-size: 12px;
michael@0 35 line-height: 12px;
michael@0 36 }
michael@0 37 .bigFont {
michael@0 38 font-size: 16px;
michael@0 39 line-height: 16px;
michael@0 40 }
michael@0 41 </style>
michael@0 42 </head>
michael@0 43 <body>
michael@0 44 a
michael@0 45 <!-- Flex container with second item in first line baseline-aligned
michael@0 46 (should set the container's baseline) -->
michael@0 47 <div class="flexContainer">
michael@0 48 <div class="medFont">b</div>
michael@0 49 <div class="bigFont" style="align-self: baseline">c</div>
michael@0 50 <div class="medFont">d</div>
michael@0 51 <div class="smallFont">e</div>
michael@0 52 </div>
michael@0 53
michael@0 54 <!-- Flex container with both items in first line baseline-aligned
michael@0 55 (should set the container's baseline) -->
michael@0 56 <div class="flexContainer">
michael@0 57 <div class="smallFont" style="align-self: baseline">f</div>
michael@0 58 <div class="medFont" style="align-self: baseline">g</div>
michael@0 59 <div class="bigFont">h</div>
michael@0 60 <div class="smallFont">i</div>
michael@0 61 </div>
michael@0 62
michael@0 63 <!-- Flex container with all items baseline-aligned, and with some padding
michael@0 64 (only those on first line should set the container's baseline) -->
michael@0 65 <div class="flexContainer" style="align-items: baseline">
michael@0 66 <div class="bigFont">j</div>
michael@0 67 <div class="smallFont" style="padding-bottom: 20px">k</div>
michael@0 68 <div class="smallFont">l</div>
michael@0 69 <div class="medFont">m</div>
michael@0 70 </div>
michael@0 71 n
michael@0 72 </body>
michael@0 73 </html>

mercurial