layout/reftests/w3c-css/submitted/flexbox/flexbox-align-self-vert-rtl-3-ref.xhtml

Thu, 15 Jan 2015 21:13:52 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:13:52 +0100
branch
TOR_BUG_9701
changeset 12
7540298fafa1
permissions
-rw-r--r--

Remove forgotten relic of ABI crash risk averse overloaded method change.

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 in a vertical
michael@0 7 "direction: rtl" flex container, using blocks in place of flex items and
michael@0 8 using float and width keywords to emulate the align-items / align-self
michael@0 9 properties. -->
michael@0 10 <html xmlns="http://www.w3.org/1999/xhtml">
michael@0 11 <head>
michael@0 12 <title>CSS Reftest Reference</title>
michael@0 13 <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"/>
michael@0 14 <style>
michael@0 15 .flexbox {
michael@0 16 border: 1px dashed blue;
michael@0 17 width: 4px;
michael@0 18 font-family: sans-serif;
michael@0 19 direction: rtl;
michael@0 20 font-size: 10px;
michael@0 21 margin-left: 80px;
michael@0 22 }
michael@0 23
michael@0 24 div.big {
michael@0 25 font-size: 18px;
michael@0 26 width: 50px;
michael@0 27 }
michael@0 28
michael@0 29 /* Classes for each of the various align-self values */
michael@0 30 .flex-start {
michael@0 31 background: lime;
michael@0 32 float: right;
michael@0 33 }
michael@0 34 .flex-end {
michael@0 35 background: orange;
michael@0 36 float: left;
michael@0 37 }
michael@0 38 <!-- We center shrinkwrapped text by putting it into an inline-block, and
michael@0 39 then wrapping that inline-block in a helper-div that has
michael@0 40 "text-align:center" set. For this to work, the parent has to be at
michael@0 41 least as wide as the centered content inside of it, so we make it
michael@0 42 large with a negative margin such that its center aligns with the
michael@0 43 4px-wide container's center. -->
michael@0 44 .centerParent {
michael@0 45 text-align: center;
michael@0 46 width: 100px;
michael@0 47 margin-right: -48px;
michael@0 48 }
michael@0 49 .center {
michael@0 50 background: lightblue;
michael@0 51 display: inline-block;
michael@0 52 text-align: right; /* Keep parent's centering from tweaking my text */
michael@0 53 }
michael@0 54 .baseline {
michael@0 55 background: teal;
michael@0 56 float: right;
michael@0 57 }
michael@0 58 .stretch {
michael@0 59 background: pink;
michael@0 60 }
michael@0 61 .clearFloats { clear: both }
michael@0 62 </style>
michael@0 63 </head>
michael@0 64 <body>
michael@0 65 <div class="flexbox">
michael@0 66 <div class="flex-start">start</div>
michael@0 67 <div class="flex-start big">a b</div>
michael@0 68 <div class="flex-end">end</div>
michael@0 69 <div class="flex-end big">a b</div>
michael@0 70 <div class="centerParent clearFloats">
michael@0 71 <div class="center">center</div>
michael@0 72 </div>
michael@0 73 <div class="centerParent">
michael@0 74 <div class="center big">a b</div>
michael@0 75 </div>
michael@0 76 <div class="baseline">base</div>
michael@0 77 <div class="baseline big">abc</div>
michael@0 78 <div class="stretch clearFloats">stretch</div>
michael@0 79 <div class="stretch big">a b</div>
michael@0 80 </div>
michael@0 81 </body>
michael@0 82 </html>

mercurial