summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-grid/alignment/grid-align-baseline-overflow-001.html
blob: 66f9eb1bcf059676465689f39cceffe43565ca84 (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: grid;
  grid-auto-flow: column;
  position: relative;
  line-height: 0;
  font-size: 20px;
  inline-size: 300px;
  margin-block: 10px;
  padding: 10px;
  border: solid 3px;
}

.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-y="45"><span></span><br><span></span></div>
  <div class="inner" data-offset-y="20">
    <div>
      <span></span><br><span></span>
    </div>
  </div>
</div>

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

<div class="target" style="align-items: first baseline;">
  <div data-offset-y="10"><span></span><br><span></span></div>
  <div class="inner" data-offset-y="30">
    <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-y="10"><span></span><br><span></span></div>
  <div class="inner" data-offset-y="50">
    <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-y="110"><span></span><br><span></span></div>
  <div class="inner" data-offset-y="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-y="90"><span></span><br><span></span></div>
  <div class="inner" data-offset-y="20">
    <div style="margin-block-start: 200px;">
      <span></span><br><span></span>
    </div>
  </div>
</div>