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

Wed, 31 Dec 2014 07:16:47 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:16:47 +0100
branch
TOR_BUG_9701
changeset 3
141e0f1194b1
permissions
-rw-r--r--

Revert simplistic fix pending revisit of Mozilla integration attempt.

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 with auto
michael@0 7 margins in play. This reference case uses fixed margin-top values
michael@0 8 in place of the testcase's auto margins. -->
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: 140px;
michael@0 17 width: 400px;
michael@0 18 display: flex;
michael@0 19 font-size: 10px;
michael@0 20 line-height: 10px;
michael@0 21 margin-bottom: 10px;
michael@0 22 }
michael@0 23
michael@0 24 .kidsAutoTop > div { margin-top: 130px; }
michael@0 25 .kidsAutoTop > div.big { margin-top: 60px; }
michael@0 26 .kidsAutoBoth > div { margin-top: 65px; }
michael@0 27 .kidsAutoBoth > div.big { margin-top: 30px; }
michael@0 28
michael@0 29 .flexbox > div {
michael@0 30 width: 40px;
michael@0 31 height: 10px;
michael@0 32 }
michael@0 33
michael@0 34 .flexbox > div.big {
michael@0 35 height: 80px;
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 kidsAutoTop">
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">end</div>
michael@0 63 <div class="flex-end big">a b c d e f</div>
michael@0 64 <div class="center">center</div>
michael@0 65 <div class="center big">a b c d e f</div>
michael@0 66 <div class="baseline">base</div>
michael@0 67 <div class="baseline big">a b c d e f</div>
michael@0 68 <div class="stretch">stretch</div>
michael@0 69 <div class="stretch big">a b c d e f</div>
michael@0 70 </div>
michael@0 71
michael@0 72 <div class="flexbox kidsAutoBottom">
michael@0 73 <div class="flex-start">start</div>
michael@0 74 <div class="flex-start big">a b c d e f</div>
michael@0 75 <div class="flex-end">end</div>
michael@0 76 <div class="flex-end big">a b c d e f</div>
michael@0 77 <div class="center">center</div>
michael@0 78 <div class="center big">a b c d e f</div>
michael@0 79 <div class="baseline">base</div>
michael@0 80 <div class="baseline big">a b c d e f</div>
michael@0 81 <div class="stretch">stretch</div>
michael@0 82 <div class="stretch big">a b c d e f</div>
michael@0 83 </div>
michael@0 84
michael@0 85 <div class="flexbox kidsAutoBoth">
michael@0 86 <div class="flex-start">start</div>
michael@0 87 <div class="flex-start big">a b c d e f</div>
michael@0 88 <div class="flex-end">end</div>
michael@0 89 <div class="flex-end big">a b c d e f</div>
michael@0 90 <div class="center">center</div>
michael@0 91 <div class="center big">a b c d e f</div>
michael@0 92 <div class="baseline">base</div>
michael@0 93 <div class="baseline big">a b c d e f</div>
michael@0 94 <div class="stretch">stretch</div>
michael@0 95 <div class="stretch big">a b c d e f</div>
michael@0 96 </div>
michael@0 97 </body>
michael@0 98 </html>

mercurial