| <!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> |