layout/reftests/w3c-css/submitted/flexbox/flexbox-align-self-horiz-5.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 <!-- Testcase for align-items / align-self behavior with auto margins in
michael@0 7 play (which should negate the effects of align-items / align-self,
michael@0 8 because there won't be any available space in which to align the item
michael@0 9 after the auto margins are resolved). -->
michael@0 10 <html xmlns="http://www.w3.org/1999/xhtml">
michael@0 11 <head>
michael@0 12 <title>CSS Test: Testing the behavior of 'align-self' with auto margins in play, in a horizontal flex container</title>
michael@0 13 <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"/>
michael@0 14 <link rel="help" href="http://www.w3.org/TR/css3-flexbox/#auto-margins"/>
michael@0 15 <link rel="match" href="flexbox-align-self-horiz-5-ref.xhtml"/>
michael@0 16 <style>
michael@0 17 .flexbox {
michael@0 18 border: 1px dashed blue;
michael@0 19 height: 140px;
michael@0 20 width: 400px;
michael@0 21 display: flex;
michael@0 22 font-size: 10px;
michael@0 23 line-height: 10px;
michael@0 24 margin-bottom: 10px;
michael@0 25 }
michael@0 26
michael@0 27 .kidsAutoTop > div { margin-top: auto; }
michael@0 28 .kidsAutoBottom > div { margin-bottom: auto; }
michael@0 29 .kidsAutoBoth > div { margin: auto 0; }
michael@0 30
michael@0 31 .flexbox > div {
michael@0 32 width: 40px;
michael@0 33 }
michael@0 34
michael@0 35 .flexbox > div.big {
michael@0 36 height: 80px;
michael@0 37 font-size: 20px;
michael@0 38 line-height: 20px;
michael@0 39 }
michael@0 40
michael@0 41 /* Classes for each of the various align-self values */
michael@0 42 .flex-start {
michael@0 43 background: lime;
michael@0 44 align-self: flex-start;
michael@0 45 }
michael@0 46 .flex-end {
michael@0 47 background: orange;
michael@0 48 align-self: flex-end;
michael@0 49 }
michael@0 50 .center {
michael@0 51 background: lightblue;
michael@0 52 align-self: center;
michael@0 53 }
michael@0 54 .baseline {
michael@0 55 background: teal;
michael@0 56 align-self: baseline;
michael@0 57 }
michael@0 58 .stretch {
michael@0 59 background: pink;
michael@0 60 align-self: stretch;
michael@0 61 }
michael@0 62 </style>
michael@0 63 </head>
michael@0 64 <body>
michael@0 65 <div class="flexbox kidsAutoTop">
michael@0 66 <div class="flex-start">start</div>
michael@0 67 <div class="flex-start big">a b c d e f</div>
michael@0 68 <div class="flex-end">end</div>
michael@0 69 <div class="flex-end big">a b c d e f</div>
michael@0 70 <div class="center">center</div>
michael@0 71 <div class="center big">a b c d e f</div>
michael@0 72 <div class="baseline">base</div>
michael@0 73 <div class="baseline big">a b c d e f</div>
michael@0 74 <div class="stretch">stretch</div>
michael@0 75 <div class="stretch big">a b c d e f</div>
michael@0 76 </div>
michael@0 77
michael@0 78 <div class="flexbox kidsAutoBottom">
michael@0 79 <div class="flex-start">start</div>
michael@0 80 <div class="flex-start big">a b c d e f</div>
michael@0 81 <div class="flex-end">end</div>
michael@0 82 <div class="flex-end big">a b c d e f</div>
michael@0 83 <div class="center">center</div>
michael@0 84 <div class="center big">a b c d e f</div>
michael@0 85 <div class="baseline">base</div>
michael@0 86 <div class="baseline big">a b c d e f</div>
michael@0 87 <div class="stretch">stretch</div>
michael@0 88 <div class="stretch big">a b c d e f</div>
michael@0 89 </div>
michael@0 90
michael@0 91 <div class="flexbox kidsAutoBoth">
michael@0 92 <div class="flex-start">start</div>
michael@0 93 <div class="flex-start big">a b c d e f</div>
michael@0 94 <div class="flex-end">end</div>
michael@0 95 <div class="flex-end big">a b c d e f</div>
michael@0 96 <div class="center">center</div>
michael@0 97 <div class="center big">a b c d e f</div>
michael@0 98 <div class="baseline">base</div>
michael@0 99 <div class="baseline big">a b c d e f</div>
michael@0 100 <div class="stretch">stretch</div>
michael@0 101 <div class="stretch big">a b c d e f</div>
michael@0 102 </div>
michael@0 103 </body>
michael@0 104 </html>

mercurial