blob: a0c42ee38d4a8001795ea89e36f7acbd173f029a (
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
34
35
36
37
38
39
40
41
42
43
44
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<style>
body {
width: 100%;
height: 100%;
}
div {
position: absolute;
height: 100px;
width: 500px;
}
#bottom {
bottom: 0px;
background: blue;
}
#vertical {
height: 100%;
background: green;
}
svg {
width: 10px;
height: 10px;
}
</style>
</head>
<body>
<div id="vertical">Vertical</div>
<div id="top" class="class1 class2">Top</div>
<div id="bottom">Bottom</div>
<svg viewBox="0 0 10 10">
<clipPath id="clip">
<rect x="0" y="0" width="10" height="5"></rect>
</clipPath>
<circle cx="5" cy="5" r="5" fill="blue" clip-path="url(#clip)"></circle>
</svg>
</body>
</html>
|