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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
<!DOCTYPE html>
<html>
<head>
<title>Box-Shadow</title>
<style>
.box {
border: 1px solid black;
height: 100px;
width: 100px;
margin: 50px;
}
#no-bg {
width: 50%;
float: left;
}
#with-bg {
width: 50%;
float: right;
background-image: url("car.png");
color: rgb(255, 255, 255);
}
.cmy {
box-shadow: 20px 10px 5px magenta, cyan -20px -10px 5px, yellow 10px -5px 5px 20px;
}
</style>
</head>
<body>
<div id="mask"></div>
<h1>Box-shadow Tests</h1>
<div id="no-bg">
<h2>Border radius 50%</h2>
<div class="box cmy" style="border-radius: 50%;">
<p>box-shadow: 20px 10px 5px magenta, cyan -20px -10px 5px, yellow 10px -5px 5px 20px</p>
</div>
<h2>Border radius: Egg</h2>
<div class="box cmy" style="border-radius: 80% 15% 55% 50% / 55% 15% 80% 50%;">
<p>box-shadow: 20px 10px 5px magenta, cyan -20px -10px 5px, yellow 10px -5px 5px 20px</p>
</div>
<br>
<h2>Border radius 20px</h2>
<div class="box cmy" style="border-radius: 20px;">
<p>box-shadow: 20px 10px 5px magenta, cyan -20px -10px 5px, yellow 10px -5px 5px 20px</p>
</div>
<br>
<div class="box" style="box-shadow: magenta -40px -20px; border-radius: 30%;">
<p>box-shadow: magenta -40px -20px</p>
</div>
<br>
<h2>No border radius</h2>
<div class="box cmy">
<p>box-shadow: 20px 10px 5px magenta, cyan -20px -10px 5px, yellow 10px -5px 5px 20px</p>
</div>
<br>
<div class="box" style="box-shadow: 20px 10px 5px magenta">
<p>box-shadow: 20px 10px 5px magenta</p>
</div>
<div class="box" style="box-shadow: 20px 10px magenta">
<p>box-shadow: 20px 10px magenta</p>
</div>
<div class="box" style="box-shadow: magenta -40px -20px">
<p>box-shadow: magenta -40px -20px</p>
</div>
<div class="box" style="box-shadow: 20px 10px rgba(255,0,255,0.5)">
<p>box-shadow: 20px 10px rgba(255,0,255,0.5)</p>
</div>
<div class="box" style="box-shadow: -40px -20px rgba(255,0,255,0.5)">
<p>box-shadow: -40px -20px rgba(255,0,255,0.5)</p>
</div>
</div>
<div id="with-bg"></div>
<script>
const noBg = document.getElementById("no-bg");
const withBg = document.getElementById("with-bg");
withBg.append(...[...noBg.childNodes].map(node => node.cloneNode(true)));
</script>
</body>
</html>
|