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

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

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 margin-top in place of the align-items /
michael@0 8 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 width: 560px;
michael@0 18 font-size: 10px;
michael@0 19 line-height: 10px;
michael@0 20 }
michael@0 21
michael@0 22 .flexbox > div {
michael@0 23 width: 40px;
michael@0 24 float: left;
michael@0 25 }
michael@0 26
michael@0 27 .big {
michael@0 28 height: 100px;
michael@0 29 font-size: 20px;
michael@0 30 line-height: 20px;
michael@0 31 }
michael@0 32
michael@0 33 /* Classes for each of the various align-self values */
michael@0 34 .flex-start {
michael@0 35 background: lime;
michael@0 36 }
michael@0 37 .flex-end {
michael@0 38 background: orange;
michael@0 39 }
michael@0 40 .center {
michael@0 41 background: lightblue;
michael@0 42 }
michael@0 43 .baseline {
michael@0 44 background: teal;
michael@0 45 }
michael@0 46 .stretch {
michael@0 47 background: pink;
michael@0 48 }
michael@0 49 .auto {
michael@0 50 background: yellow;
michael@0 51 }
michael@0 52 .unspecified {
michael@0 53 background: lightgreen;
michael@0 54 }
michael@0 55 .initial {
michael@0 56 background: aqua;
michael@0 57 }
michael@0 58 .inherit {
michael@0 59 background: violet;
michael@0 60 }
michael@0 61 </style>
michael@0 62 </head>
michael@0 63 <body>
michael@0 64 <div class="flexbox">
michael@0 65 <div class="flex-start">start</div>
michael@0 66 <div class="flex-start big">a b c d e f</div>
michael@0 67 <div class="flex-end" style="margin-top: 190px">end</div>
michael@0 68 <div class="flex-end big" style="margin-top: 100px">a b c d e f</div>
michael@0 69 <div class="center" style="margin-top: 95px">center</div>
michael@0 70 <div class="center big" style="margin-top: 50px">a b c d e f</div>
michael@0 71 <!-- We use inline-blocks inside of a wrapper-block as references for the
michael@0 72 baseline-aligned flex items, since inline-blocks get
michael@0 73 baseline-aligned in block layout. We also need to specify the widths
michael@0 74 manually here since the "flexbox > div" child-selector doesn't
michael@0 75 handle these guys (since they're grandchildren).
michael@0 76 -->
michael@0 77 <div style="width: 80px">
michael@0 78 <div class="baseline"
michael@0 79 style="width: 40px; display: inline-block">base</div
michael@0 80 ><div class="baseline big"
michael@0 81 style="width: 40px; display: inline-block">abc</div>
michael@0 82 </div>
michael@0 83 <div class="stretch" style="height: 100%">stretch</div>
michael@0 84 <div class="stretch big">a b c d e f</div>
michael@0 85 <div class="auto" style="margin-top: 95px">auto</div>
michael@0 86 <div class="unspecified" style="margin-top: 95px">unspec</div>
michael@0 87 <div class="initial" style="margin-top: 95px">initial</div>
michael@0 88 <div class="inherit" style="margin-top: 190px">inherit</div>
michael@0 89 </div>
michael@0 90 </body>
michael@0 91 </html>

mercurial