summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-view-transitions/hit-test-unrelated-element-ref.html
blob: 9d236466d6145e4337147b8393e3fe937a41a2a0 (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>Shared 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>