Thu, 15 Jan 2015 21:13:52 +0100
Remove forgotten relic of ABI crash risk averse overloaded method change.
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 Any copyright is dedicated to the Public Domain.
4 http://creativecommons.org/publicdomain/zero/1.0/
5 -->
6 <!-- Reference case for align-items / align-self behavior in a vertical
7 "direction: rtl" flex container, using blocks in place of flex items and
8 using float and width keywords to emulate the align-items / align-self
9 properties. -->
10 <html xmlns="http://www.w3.org/1999/xhtml">
11 <head>
12 <title>CSS Reftest Reference</title>
13 <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"/>
14 <style>
15 .flexbox {
16 border: 1px dashed blue;
17 width: 200px;
18 direction: rtl;
19 font-family: sans-serif;
20 font-size: 10px;
21 }
23 div.big {
24 font-size: 20px;
25 width: 50px;
26 }
28 .flexbox > * {
29 clear: both;
30 }
32 /* Classes for each of the various align-self values */
33 .flex-start {
34 background: lime;
35 float: right;
36 }
37 .flex-end {
38 background: orange;
39 float: left;
40 }
41 .center {
42 background: lightblue;
43 margin: auto;
44 }
45 .baseline {
46 background: teal;
47 float: right;
48 }
49 .stretch {
50 background: pink;
51 width: 100%;
52 }
53 .auto {
54 background: yellow;
55 margin: auto;
56 }
57 .unspecified {
58 background: lightgreen;
59 margin: auto;
60 }
61 .initial {
62 background: aqua;
63 margin: auto;
64 }
65 .inherit {
66 background: violet;
67 float: left;
68 }
70 <!-- We center shrinkwrapped text by putting it into an inline-block, and
71 then wrapping that inline-block in a helper-div that has
72 "text-align:center" set. -->
73 .centerParent {
74 text-align: center;
75 }
76 .centerParent > * {
77 display: inline-block;
78 text-align: left; /* Keep parent's centering from tweaking my text */
79 }
80 </style>
81 </head>
82 <body>
83 <div class="flexbox">
84 <div class="flex-start">start</div>
85 <div class="flex-start big">a b c d e f</div>
86 <div class="flex-end">end</div>
87 <div class="flex-end big">a b c d e f</div>
88 <div class="centerParent">
89 <div class="center">center</div>
90 </div>
91 <div class="center big">a b c d e f</div>
92 <div class="baseline">base</div>
93 <div class="baseline big">abc</div>
94 <div class="stretch">stretch</div>
95 <div class="stretch big">a b c d e f</div>
96 <div class="centerParent">
97 <div class="auto">auto</div>
98 </div>
99 <div class="centerParent">
100 <div class="unspecified">unspec</div>
101 </div>
102 <div class="centerParent">
103 <div class="initial">initial</div>
104 </div>
105 <div class="inherit">inherit</div>
106 <!-- Since that last div is floated right, the container doesn't include
107 its height by default. So we add some invisible hacky text (of the
108 same font) to make sure our container is tall enough. -->
109 <span style="visibility:hidden">hacky text</span>
110 </div>
111 </body>
112 </html>