summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-view-transitions/content-with-clip-max-texture-size-ref.html
blob: 3c66ddbfe701de29b900234c3e9b8ae579c96816 (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
<!DOCTYPE html>
<title>Shared transitions: element with clip max texture size (ref)</title>
<link rel="help" href="https://github.com/WICG/view-transitions">
<link rel="author" href="mailto:khushalsagar@chromium.org">
<style>
.target {
  contain: paint;
  width: 100px;
  height: 8000px;
}

.green {
  width: 100%;
  height: 7900px;
  background: green
}

.blue {
  width: 100%;
  height: 100px;
  background: blue;
}

.hidden {
  contain: paint;
  width: 10px;
  height: 10px;
  background: grey;
  visibility: hidden;
}
</style>
<body>
<div id="target1" class="target">
  <div class="green"></div>
  <div id="scrollblue" class="blue"></div>
</div>
<div id=hidden class=hidden></div>
</body>
<script>
  scrollblue.scrollIntoView();
</script>