blob: 4dd113b5f72016e70335d6bcd2870f05d6d5fa34 (
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
|
<!DOCTYPE html>
<html lang="en">
<head>
<style>
body {
margin: 0;
}
.circle-clip-path {
width: 200px;
height: 200px;
background-color: green;
-webkit-clip-path: circle(100px at 100px 100px);
}
.red-marker {
/* We position a red dot behind, so that it is obvious when the test is failing. */
position: absolute;
top: 250px;
left: 50px;
width: 100px;
height: 100px;
background-color: red;
border-radius: 50px;
}
</style>
</head>
<body>
<!-- Testing that the clip-path of the first element doesn't clip the second element. You should see two green circles and no red. -->
<div class="red-marker"></div>
<div class="circle-clip-path"></div>
<div class="circle-clip-path"></div>
</body>
</html>
|