summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-align/abspos/table-align-self-stretch.html
blob: bedd0a56950d21ef9e3bd81ffb30fe9534a621ef (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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<!DOCTYPE html>
<link rel="help" href="https://drafts.csswg.org/css-align-3/#align-abspos">
<style>
body {
  margin: 0;
}

.container {
  writing-mode: horizontal-tb;
  display: inline-block;
  position: relative;
  margin: 20px;
  border: solid 4px;
  width: 40px;
  height: 40px;
}

.item {
  writing-mode: horizontal-tb;
  position: absolute;
  background: green;
  inset: 5px;
  align-self: stretch;
  display: table;
}

.item::before {
  content: '';
  display: block;
  width: 10px;
  height: 20px;
}

.big::before {
  width: 50px;
  height: 60px;
}

.vrl {
  writing-mode: vertical-rl;
}
</style>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/check-layout-th.js"></script>

<body onload="checkLayout('.item')">

<body>

<div class="container">
  <div class="item" data-expected-width="10" data-expected-height="30"></div>
</div>

<div class="container">
  <div class="item big" data-expected-width="50" data-expected-height="60"></div>
</div>

<div class="container">
  <div class="item vrl" data-expected-width="10" data-expected-height="30"></div>
</div>

<div class="container">
  <div class="item big vrl" data-expected-width="50" data-expected-height="60"></div>
</div>

<br>

<div class="container vrl">
  <div class="item" data-expected-width="30" data-expected-height="20"></div>
</div>

<div class="container vrl">
  <div class="item big" data-expected-width="50" data-expected-height="60"></div>
</div>

<div class="container vrl">
  <div class="item vrl" data-expected-width="30" data-expected-height="20"></div>
</div>

<div class="container vrl">
  <div class="item big vrl" data-expected-width="50" data-expected-height="60"></div>
</div>