layout/reftests/w3c-css/submitted/flexbox/flexbox-align-self-vert-rtl-1.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 <!-- Testcase for align-items / align-self behavior, with all the possible
michael@0 7 values included on different items within a flex container, and with
michael@0 8 "direction: rtl" to swap the horizontal (cross) axis. -->
michael@0 9 <html xmlns="http://www.w3.org/1999/xhtml">
michael@0 10 <head>
michael@0 11 <title>CSS Test: Testing the behavior of 'align-self' property values on flex items that are blocks, in a vertical flex container with 'direction: rtl'</title>
michael@0 12 <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"/>
michael@0 13 <link rel="help" href="http://www.w3.org/TR/css3-flexbox/#align-items-property"/>
michael@0 14 <link rel="match" href="flexbox-align-self-vert-rtl-1-ref.xhtml"/>
michael@0 15 <style>
michael@0 16 .flexbox {
michael@0 17 border: 1px dashed blue;
michael@0 18 width: 200px;
michael@0 19 display: flex;
michael@0 20 flex-direction: column;
michael@0 21 direction: rtl;
michael@0 22 font-family: sans-serif;
michael@0 23 font-size: 10px;
michael@0 24
michael@0 25 /* Any children whose align-self is 'auto' (or unspecified, or
michael@0 26 initial) will end up taking this value from us: */
michael@0 27 align-items: center;
michael@0 28
michael@0 29 /* Any children whose align-self is 'inherit' will end up
michael@0 30 inheriting this value from us: */
michael@0 31 align-self: flex-end;
michael@0 32 }
michael@0 33
michael@0 34 .big {
michael@0 35 font-size: 20px;
michael@0 36 width: 50px;
michael@0 37 }
michael@0 38
michael@0 39 /* Classes for each of the various align-self values */
michael@0 40 .flex-start {
michael@0 41 background: lime;
michael@0 42 align-self: flex-start;
michael@0 43 }
michael@0 44 .flex-end {
michael@0 45 background: orange;
michael@0 46 align-self: flex-end;
michael@0 47 }
michael@0 48 .center {
michael@0 49 background: lightblue;
michael@0 50 align-self: center;
michael@0 51 }
michael@0 52 .baseline {
michael@0 53 background: teal;
michael@0 54 align-self: baseline;
michael@0 55 }
michael@0 56 .stretch {
michael@0 57 background: pink;
michael@0 58 align-self: stretch;
michael@0 59 }
michael@0 60 .auto {
michael@0 61 background: yellow;
michael@0 62 align-self: auto;
michael@0 63 }
michael@0 64 .unspecified {
michael@0 65 background: lightgreen;
michael@0 66 }
michael@0 67 .initial {
michael@0 68 background: aqua;
michael@0 69 align-self: initial;
michael@0 70 }
michael@0 71 .inherit {
michael@0 72 background: violet;
michael@0 73 align-self: inherit;
michael@0 74 }
michael@0 75 </style>
michael@0 76 </head>
michael@0 77 <body>
michael@0 78 <div class="flexbox">
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">abc</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 class="auto">auto</div>
michael@0 90 <div class="unspecified">unspec</div>
michael@0 91 <div class="initial">initial</div>
michael@0 92 <div class="inherit">inherit</div>
michael@0 93 </div>
michael@0 94 </body>
michael@0 95 </html>

mercurial