summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-grid/grid-child-percent-basis-resize-1.html
blob: 7fb5d8e117d9f0b7e23bf3921843e8ea29ef4522 (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
<!DOCTYPE html>
<meta charset="utf-8">
<title>Testcase, bug 1584018</title>
<link rel="author" title="L. David Baron" href="https://dbaron.org/">
<link rel="author" title="Mozilla" href="https://mozilla.org">
<link rel="help" href="https://drafts.csswg.org/css-grid">
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1584018">
<link rel="match" href="grid-child-percent-basis-resize-1-ref.html">

<style>
  .grid-container {
    display: grid;
    width: 100px;
  }

  .grid-item {
  }

  .scroll-outer {
    overflow:hidden;
    /* this combination is important */
    height: 100%;
    max-height: 100px;
  }

  .scroll-inner {
    overflow:scroll;
    height:100%;
  }

</style>

<div class="grid-container">
  <div class="grid-item">
    <div class="scroll-outer">
      <div class="scroll-inner">
        <div>0</div>
        <div>1</div>
        <div>2</div>
        <div>3</div>
        <div>4</div>
        <div>5</div>
        <div>6</div>
        <div>7</div>
        <div>8</div>
        <div>9</div>
        <div>0</div>
        <div>1</div>
        <div>2</div>
        <div>3</div>
        <div>4</div>
        <div>5</div>
        <div>6</div>
        <div>7</div>
        <div>8</div>
        <div>9</div>
      </div>
    </div>
  </div>
</div>