summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-view-transitions/pseudo-element-overflow-hidden-ref.html
blob: 02bcb5bb49c09ba151b10751ad31b9ebba91bdef (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
<!DOCTYPE html>
<html style="background:pink">
<title>View transitions: overflow:hidden is respected on pseudo elements</title>
<link rel="help" href="https://drafts.csswg.org/css-view-transitions-1/">
<style>
body {
  margin: 0px;
}
div {
  width: 200px;
  height: 200px;
}
#target {
  position: absolute;
  width: 200px;
  height: 200px;
  background: green;
  overflow: hidden;
}
#inner {
  position: relative;
  left: 100px;
  top: 100px;
  background: blue;
}
.offset {
  left: 400px;
}
</style>

<div id="target"><div id="inner"></div></div>
<div id="target" class="offset"><div id="inner"></div></div>
</html>