-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Expand file tree
/
Copy pathalign-self-baseline-with-flex-wrap.html
More file actions
145 lines (135 loc) · 4.68 KB
/
Copy pathalign-self-baseline-with-flex-wrap.html
File metadata and controls
145 lines (135 loc) · 4.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<!DOCTYPE html>
<head>
<link rel="help" href="https://drafts.csswg.org/css-align-3/#synthesize-baseline">
<link rel="help" href="https://drafts.csswg.org/css-writing-modes-4/#logical-to-physical">
<link rel="author" href="mailto:simonwuelker@arcor.de" title="Simon Wülker">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/check-layout-th.js"></script>
<style>
.box {
display: flex;
outline: 1px solid;
position: relative;
}
.row {
width: 20px;
height: 50px;
flex-direction: row;
.big {
width: 10px;
height: 30px;
margin-top: 2px;
margin-bottom: 5px;
}
}
.column {
flex-direction: column;
width: 50px;
height: 20px;
.big {
width: 30px;
height: 10px;
margin-left: 2px;
margin-right: 5px;
}
}
.reverse {
flex-wrap: wrap-reverse;
}
.box span {
outline: 1px solid;
align-self: baseline;
}
.rtl {
direction: rtl;
}
.small {
width: 10px;
height: 10px;
background-color: blue;
}
.big {
background-color: blueviolet;
}
th, td {
border: 1px solid black;
padding: 5px;
text-align: center;
vertical-align: middle;
}
div {
margin-inline: auto;
}
</style>
</head>
<body onload="checkLayout('.box > span')">
<table>
<thead>
<tr>
<th></th>
<th><pre>flex-direction: row</pre></th>
<th><pre>flex-direction: row-reverse</pre></th>
<th><pre>flex-direction: column</pre></th>
<th><pre>flex-direction: column-reverse</pre></th>
</tr>
</thead>
<tbody>
<tr>
<th><pre>direction=ltr</pre></th>
<td>
<div class="box row">
<span class="small" data-offset-x="0" data-offset-y="22"></span>
<span class="big" data-offset-x="10" data-offset-y="2"></span>
</div>
</td>
<td>
<div class="box row reverse">
<span class="small" data-offset-x="0" data-offset-y="35"></span>
<span class="big" data-offset-x="10" data-offset-y="15"></span>
</div>
</td>
<td>
<div class="box column">
<span class="small" data-offset-x="2" data-offset-y="0"></span>
<span class="big" data-offset-x="2" data-offset-y="10"></span>
</div>
</td>
<td>
<div class="box column reverse">
<span class="small" data-offset-x="15" data-offset-y="0"></span>
<span class="big" data-offset-x="15" data-offset-y="10"></span>
</div>
</td>
</tr>
<tr>
<th>
<pre>direction=rtl</pre>
</th>
<td>
<div class="box rtl row">
<span class="small" data-offset-x="10" data-offset-y="22"></span>
<span class="big" data-offset-x="0" data-offset-y="2"></span>
</div>
</td>
<td>
<div class="box rtl row reverse">
<span class="small" data-offset-x="10" data-offset-y="35"></span>
<span class="big" data-offset-x="0" data-offset-y="15"></span>
</div>
</td>
<td>
<div class="box rtl column">
<span class="small" data-offset-x="15" data-offset-y="0"></span>
<span class="big" data-offset-x="15" data-offset-y="10"></span>
</div>
</td>
<td>
<div class="box rtl column reverse">
<span class="small" data-offset-x="2" data-offset-y="0"></span>
<span class="big" data-offset-x="2" data-offset-y="10"></span>
</div>
</td>
</tr>
</tbody>
</table>