summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-transforms/preserve3d-and-filter-with-perspective-ref.html
blob: 590085f9c08c13ede327201768fdf91d284ee617 (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
50
51
52
53
54
55
56
57
58
<!DOCTYPE HTML>
<title>CSS Test Reference (Transforms): Filter on an element in a preserve-3d scene</title>
<link rel="author" title="L. David Baron" href="https://dbaron.org/">
<link rel="author" title="Google" href="http://www.google.com/">

<style>

  .scene {
    width: 400px;
    height: 400px;
    position: absolute;
    left: 100px;
    top: 100px;
    perspective:1300px;
  }

  .chair {
    width: 400px;
    height: 400px;
    transform: rotateY(88deg);
    transform-style: preserve-3d;
    transform-origin: 50% 50% 50%;
  }

  .shadow {
    position: absolute;
    top: 250px;
    left: 0;
    width: 200px;
    height: 200px;
    background: white;
    transform: rotateX(90deg) translate3d(0,-60px,0);
  }

  svg.cover {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 500px;
    height: 500px;
  }

</style>

<div class="scene">
 <div class="chair">
  <div class="shadow"></div>
 </div>
</div>

<svg class="cover">
  <polygon fill="black" stroke="blue" stroke-width="11"
           points="103.793,476.3579
                   140.7813,449.3585
                   340.0185,450.1613
                   339.0401,477.4783" />
</svg>