summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/compat/webkit-box-horizontal-reverse-variants.html
blob: 09dba694f260c6e5536663cac6151427a49d6dc5 (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
59
60
61
62
63
64
65
66
67
68
69
70
<!DOCTYPE html>
<link rel="help" href="https://crbug.com/1034461">
<link rel="match" href="webkit-box-horizontal-reverse-variants-ref.html">
<style>
.webkitbox {
  width: 300px;
  display: -webkit-box;
  -webkit-box-direction: reverse;
  border-style: solid;
  border-width: 1px 2px 1px 4px;
}

.redbox {
  background: red;
  width: 100px;
}

.greenbox {
  background: green;
  width: 100px;
}

</style>
<p>Exercises -webkit-box with various box-pack settings when direction is
   reverse. In all cases the order of letters in the boxes should be
   alphabetized left to right.
<p>Start. Boxes should be aligned to left side.
<div class="webkitbox">
  <div class="redbox">B</div>
  <div class="greenbox">A</div>
</div>

<p>Centered. Boxes should be centered.
<div class="webkitbox" style="-webkit-box-pack: center">
  <div class="redbox">B</div>
  <div class="greenbox">A</div>
</div>

<p>End. Boxes should be aligned to right side.
<div class="webkitbox" style="-webkit-box-pack: end">
  <div class="redbox">B</div>
  <div class="greenbox">A</div>
</div>

<p>Start, content too big. Boxes should start at left edge and extend
   outside border.
<div class="webkitbox">
  <div class="redbox">D</div>
  <div class="greenbox">C</div>
  <div class="redbox">B</div>
  <div class="greenbox">A</div>
</div>

<p>Center, content too big. Boxes should start at left edge and extend
   outside border.
<div class="webkitbox" style="-webkit-box-pack: center">
  <div class="redbox">D</div>
  <div class="greenbox">C</div>
  <div class="redbox">B</div>
  <div class="greenbox">A</div>
</div>

<p>End, content too big. Boxes should start at left edge and extend
   outside border.
<div class="webkitbox" style="-webkit-box-pack: end">
  <div class="redbox">D</div>
  <div class="greenbox">C</div>
  <div class="redbox">B</div>
  <div class="greenbox">A</div>
</div>