summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-view-transitions/clip-path-larger-than-border-box-on-child-of-named-element-ref.html
blob: 67d55eedf4872f828e2838c6f7c77d6d4d053b11 (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
<!DOCTYPE html>
<html>
<title>View transitions: clip-path larger than element bounds on child of a named element (ref)</title>
<link rel="help" href="https://drafts.csswg.org/css-view-transitions-1/">
<link rel="author" href="mailto:khushalsagar@chromium.org">
<style>
body {
  background: lightpink;
}

.target {
  width: 100px;
  height: 100px;
  background: blue;
}
.child {
  width: 10px;
  height: 10px;
  position: relative;
  top: 100px;
  left: 100px;
  background: green;
  clip-path: inset(-10px -100px -50px -20px);
}
</style>

<div class="target">
  <div class="child"></div>
</div>