Fri, 16 Jan 2015 04:50:19 +0100
Replace accessor implementation with direct member state manipulation, by
request https://trac.torproject.org/projects/tor/ticket/9701#comment:32
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 <!-- Testcase for align-items / align-self behavior, with all the possible
7 values included on different items within a flex container, and with the
8 flex container being skinnier than its items. -->
9 <html xmlns="http://www.w3.org/1999/xhtml">
10 <head>
11 <title>CSS Test: Testing the behavior of 'align-self' with a vertical flex container that's skinnier than its items, with margin/padding/border on the items</title>
12 <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"/>
13 <link rel="help" href="http://www.w3.org/TR/css3-flexbox/#align-items-property"/>
14 <link rel="match" href="flexbox-align-self-vert-4-ref.xhtml"/>
15 <style>
16 .flexbox {
17 border: 1px dashed blue;
18 width: 4px;
19 display: flex;
20 flex-direction: column;
21 float: left;
22 font-family: sans-serif;
23 font-size: 10px;
24 margin-left: 80px;
25 }
27 .flexbox > div {
28 margin: 1px 2px 3px 4px;
29 border-width: 2px 3px 4px 5px;
30 padding: 3px 4px 5px 6px;
32 border-style: dotted;
33 }
35 div.big {
36 font-size: 18px;
37 width: 50px;
38 }
40 /* Classes for each of the various align-self values */
41 .flex-start {
42 background: lime;
43 align-self: flex-start;
44 }
45 .flex-end {
46 background: orange;
47 align-self: flex-end;
48 }
49 .center {
50 background: lightblue;
51 align-self: center;
52 }
53 .baseline {
54 background: teal;
55 align-self: baseline;
56 }
57 .stretch {
58 background: pink;
59 align-self: stretch;
60 }
61 </style>
62 </head>
63 <body>
64 <div class="flexbox">
65 <div class="flex-start">start</div>
66 <div class="flex-start big">a b</div>
67 <div class="flex-end">end</div>
68 <div class="flex-end big">a b</div>
69 <div class="center">center</div>
70 <div class="center big">a b</div>
71 </div>
72 <div class="flexbox">
73 <div class="baseline">base</div>
74 <div class="baseline big">abc</div>
75 <div class="stretch">stretch</div>
76 <div class="stretch big">a b</div>
77 </div>
78 </body>
79 </html>