blob: a29c7ca93d5a41adc8ef92a245855a456a50e515 (
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
45
46
47
48
49
|
<!DOCTYPE html>
<html>
<head>
<style type="text/css" media="screen">
.wrapper {
width: 300px;
height: 300px;
-webkit-box-sizing: border-box;
padding: 100px;
margin: 20px;
display: inline-block;
}
.top {
height: 150px;
padding: 25px 100px;
}
.box {
position: relative;
width: 100px;
height: 100px;
display: inline-block;
}
</style>
</head>
<body>
<p>The shadow should look identical relative to the box in each case.</p>
<div class="top wrapper">
<div class="box" style="box-shadow: 0 10px 20px black; transform: scale(2, 1)"></div>
</div>
<div class="top wrapper">
<div class="box" style="box-shadow: 0 10px 20px black; transform: rotate(45deg)"></div>
</div>
<div class="wrapper">
<div class="box" style="box-shadow: 0 10px 20px black; transform: rotate(45deg) scale(1.7)"></div>
</div>
<div class="wrapper">
<div class="box" style="box-shadow: 0 10px 20px black; transform: rotate(45deg) scale(0.8)"></div>
</div>
</body>
</html>
|