layout/reftests/w3c-css/submitted/flexbox/flexbox-align-self-horiz-2-ref.xhtml

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 <?xml version="1.0" encoding="UTF-8"?>
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 for align-items / align-self behavior, using floated divs
michael@0 7 in place of flex items and using relative positioning in place of the
michael@0 8 align-items / align-self properties. -->
michael@0 9 <html xmlns="http://www.w3.org/1999/xhtml">
michael@0 10 <head>
michael@0 11 <title>CSS Reftest Reference</title>
michael@0 12 <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"/>
michael@0 13 <style>
michael@0 14 .flexbox {
michael@0 15 border: 1px dashed blue;
michael@0 16 height: 200px;
michael@0 17 display: inline-block;
michael@0 18 font-size: 10px;
michael@0 19 line-height: 10px;
michael@0 20 vertical-align: top;
michael@0 21 }
michael@0 22
michael@0 23 .flexbox > div { float: left }
michael@0 24 .flex-start, .flex-end, .center, .baseline, .stretch,
michael@0 25 .auto, .unspecified, .initial, .inherit {
michael@0 26 width: 40px;
michael@0 27 margin: 1px 2px 3px 4px;
michael@0 28 border-width: 2px 3px 4px 5px;
michael@0 29 padding: 3px 4px 5px 6px;
michael@0 30 position: relative;
michael@0 31 border-style: dotted;
michael@0 32 }
michael@0 33
michael@0 34 .big {
michael@0 35 height: 100px;
michael@0 36 font-size: 20px;
michael@0 37 line-height: 20px;
michael@0 38 }
michael@0 39
michael@0 40 /* Classes for each of the various align-self values */
michael@0 41 .flex-start {
michael@0 42 background: lime;
michael@0 43 }
michael@0 44 .flex-end {
michael@0 45 background: orange;
michael@0 46 }
michael@0 47 .center {
michael@0 48 background: lightblue;
michael@0 49 }
michael@0 50 .baseline {
michael@0 51 background: teal;
michael@0 52 }
michael@0 53 .stretch {
michael@0 54 background: pink;
michael@0 55 }
michael@0 56 </style>
michael@0 57 </head>
michael@0 58 <body>
michael@0 59 <div class="flexbox">
michael@0 60 <div class="flex-start">start</div>
michael@0 61 <div class="flex-start big">a b c d e f</div>
michael@0 62 <div class="flex-end" style="top: 172px">end</div>
michael@0 63 <div class="flex-end big" style="top: 82px">a b c d e f</div>
michael@0 64 <div class="center" style="top: 86px">center</div>
michael@0 65 <div class="center big" style="top: 41px">a b c d e f</div>
michael@0 66 </div>
michael@0 67 <br/>
michael@0 68 <div class="flexbox">
michael@0 69 <!-- We use inline-blocks inside of a wrapper-block as references for the
michael@0 70 baseline-aligned flex items, since inline-blocks get
michael@0 71 baseline-aligned in block layout. We also need to specify the widths
michael@0 72 manually here since the "flexbox > div" child-selector doesn't
michael@0 73 handle these guys (since they're grandchildren).
michael@0 74 -->
michael@0 75 <div>
michael@0 76 <div class="baseline"
michael@0 77 style="display: inline-block">base</div
michael@0 78 ><div class="baseline big"
michael@0 79 style="display: inline-block">abc</div>
michael@0 80 </div>
michael@0 81 <div class="stretch" style="height: 182px">stretch</div>
michael@0 82 <div class="stretch big">a b c d e f</div>
michael@0 83 </div>
michael@0 84 </body>
michael@0 85 </html>

mercurial