blob: 0f013e3b5e1123797264ce83739db811570ce612 (
plain)
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
|
<!DOCTYPE HTML>
<html>
<head>
<title>CSS Test: Flexbox align-items: stretch with writing-mode vertical-lr and vertical-rl</title>
<link rel="author" title="Mitsuteru Sawa" href="mailto:mitsuteru.s@gmail.com">
<link rel="reviewer" title="Tab Atkins Jr." href="mailto:jackalmage@gmail.com">
<link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#propdef-align-items">
<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#block-flow">
<link rel="match" href="flexbox_align-items-stretch-writing-modes-ref.html">
<meta name="assert" content="vertical-writing-mode flex items should stretch">
<style>
.container {
display: flex;
width: 250px;
}
.vertical-rl {
writing-mode: vertical-rl;
}
.vertical-lr {
writing-mode: vertical-lr;
}
.item {
background-color: green;
}
.square {
height: 50px;
width: 50px;
}
.error {
position: absolute;
background-color: red;
height: 100px;
width: 250px;
z-index: -1;
}
</style>
</head>
<body>
<p>The test passes if you see a green rectangle and no red.</p>
<div class="test">
<div class="error"></div>
<div class="container">
<div class="horizontal item">
<div class="square"></div>
<div class="square"></div>
</div>
<div class="vertical-rl item">
<div class="square"></div>
<div class="square"></div>
</div>
<div class="vertical-lr item">
<div class="square"></div>
<div class="square"></div>
</div>
</div>
</div>
</body>
</html>
|