summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-flexbox/alignment/flex-align-baseline-overflow-002.html
blob: d136159246b8801eb4e991396ad2806962add399 (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
85
86
87
88
89
90
91
<!DOCTYPE html>
<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/7660">
<style>
.target {
  display: flex;
  position: relative;
  line-height: 0;
  font-size: 20px;
  inline-size: 300px;
  margin-block: 10px;
  padding: 10px;
  border: solid 3px;
  writing-mode: vertical-rl;
}

.inner {
  overflow: hidden;
  inline-size: 100px;
  block-size: 80px;
  margin: 10px;
  border: solid 5px;
  padding: 10px;
  font-size: 30px;
}

span {
  display: inline-block;
  width: 1em;
  height: 1em;
  outline: solid cyan 3px;
  outline-offset: -3px;
}
</style>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/check-layout-th.js"></script>
<body onload="checkLayout('.target > *')">

<div class="target" style="align-items: first baseline;">
  <div data-offset-x="70"><span></span><br><span></span></div>
  <div class="inner" data-offset-x="20">
    <div>
      <span></span><br><span></span>
    </div>
  </div>
</div>

<div class="target" style="align-items: last baseline;">
  <div data-offset-x="60"><span></span><br><span></span></div>
  <div class="inner" data-offset-x="20">
    <div>
      <span></span><br><span></span>
    </div>
  </div>
</div>

<div class="target" style="align-items: first baseline;">
  <div data-offset-x="100"><span></span><br><span></span></div>
  <div class="inner" data-offset-x="20">
    <div style="margin-block-start: -200px;">
      <span></span><br><span></span>
    </div>
  </div>
</div>

<div class="target" style="align-items: last baseline;">
  <div data-offset-x="120"><span></span><br><span></span></div>
  <div class="inner" data-offset-x="20">
    <div style="margin-block-start: -200px;">
      <span></span><br><span></span>
    </div>
  </div>
</div>

<div class="target" style="align-items: first baseline;">
  <div data-offset-x="10"><span></span><br><span></span></div>
  <div class="inner" data-offset-x="40">
    <div style="margin-block-start: 200px;">
      <span></span><br><span></span>
    </div>
  </div>
</div>

<div class="target" style="align-items: last baseline;">
  <div data-offset-x="10"><span></span><br><span></span></div>
  <div class="inner" data-offset-x="20">
    <div style="margin-block-start: 200px;">
      <span></span><br><span></span>
    </div>
  </div>
</div>