summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-view-transitions/hit-test-unrelated-element-ref.html
blob: bca532b22c6a777108fd7a1ea7b811a73f7cdb17 (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
<!DOCTYPE html>
<title>View transitions: hit test shared element at the real dom location (ref)</title>
<link rel="help" href="https://github.com/WICG/view-transitions">
<link rel="author" href="mailto:vmpstr@chromium.org">

<style>
#target {
  width: 100px;
  height: 100px;
  contain: paint;
  background: blue;
  position: relative;
  left: 200px;
}
#unrelated {
  width: 100px;
  height: 100px;
  background: green;
  position: relative;
  top: 200px;
  left: 200px;
}

</style>

<div id=target></div>
<div id=unrelated></div>