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 float: left;
19 direction: rtl;
20 font-family: sans-serif;
21 font-size: 10px;
22 }
24 .flex-start, .flex-end, .center, .baseline, .stretch {
25 clear: both;
26 margin: 1px 2px 3px 4px;
27 border-width: 2px 3px 4px 5px;
28 padding: 3px 4px 5px 6px;
29 border-style: dotted;
30 }
32 div.big {
33 font-size: 20px;
34 width: 50px;
35 }
37 /* Classes for each of the various align-self values */
38 .flex-start {
39 background: lime;
40 float: right;
41 }
42 .flex-end {
43 background: orange;
44 float: left;
45 }
46 <!-- We center shrinkwrapped text by putting it into an inline-block, and
47 then wrapping that inline-block in a helper-div that has
48 "text-align:center" set. -->
49 .centerParent {
50 text-align: center;
51 }
52 .center {
53 background: lightblue;
54 display: inline-block;
55 text-align: right; /* Keep parent's centering from tweaking my text */
56 }
57 .baseline {
58 background: teal;
59 float: right;
60 }
61 .stretch {
62 background: pink;
63 }
64 .clearFloats { clear: both }
65 </style>
66 </head>
67 <body>
68 <div class="flexbox">
69 <div class="flex-start">start</div>
70 <div class="flex-start big">a b c d e f</div>
71 <div class="flex-end">end</div>
72 <div class="flex-end big">a b c d e f</div>
73 <div class="clearFloats"></div>
74 <div class="centerParent">
75 <div class="center">center</div>
76 </div>
77 <div class="centerParent">
78 <div class="center big">a b c d e f</div>
79 </div>
80 </div>
81 <div class="flexbox">
82 <div class="baseline">base</div>
83 <div class="baseline big">abc</div>
84 <div class="clearFloats"></div>
85 <div class="stretch">stretch</div>
86 <!-- Force a 3px + 1px = 4px margin between this and the previous div
87 (to thwart the effects of margin-collapsing). This is the only
88 place we need this hack, because everywhere else in this test
89 we use floats or inline-blocks, whose margins don't collapse. -->
90 <div class="stretch big" style="margin-top: 4px">a b c d e f</div>
91 </div>
92 </body>
93 </html>