| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <style> | 4 <style> |
| 5 body { | 5 body { |
| 6 overflow: hidden; | 6 overflow: hidden; |
| 7 } | 7 } |
| 8 | 8 |
| 9 #perspective { | 9 #perspective { |
| 10 -webkit-perspective: 1000px; | 10 -webkit-perspective: 1000px; |
| 11 position: absolute; | 11 position: absolute; |
| 12 width: 600px; | 12 width: 600px; |
| 13 left: -600px; | 13 left: -600px; |
| 14 } | 14 } |
| 15 | 15 |
| 16 #transformed { | 16 #transformed { |
| 17 -webkit-transform: rotateY(90deg); | 17 transform: rotateY(90deg); |
| 18 -webkit-transform-origin: right; | 18 -webkit-transform-origin: right; |
| 19 background: green; | 19 background: green; |
| 20 height: 800px; | 20 height: 800px; |
| 21 } | 21 } |
| 22 | 22 |
| 23 #container { | 23 #container { |
| 24 position: relative; | 24 position: relative; |
| 25 overflow: hidden; | 25 overflow: hidden; |
| 26 width: 800px; | 26 width: 800px; |
| 27 height: 600px; | 27 height: 600px; |
| 28 } | 28 } |
| 29 </style> | 29 </style> |
| 30 </style> | 30 </style> |
| 31 </head> | 31 </head> |
| 32 <body> | 32 <body> |
| 33 <!-- The green rectangle should be visible. --> | 33 <!-- The green rectangle should be visible. --> |
| 34 <div id="container"> | 34 <div id="container"> |
| 35 <div id="perspective"> | 35 <div id="perspective"> |
| 36 <div id="transformed"></div> | 36 <div id="transformed"></div> |
| 37 </div> | 37 </div> |
| 38 </div> | 38 </div> |
| 39 </body> | 39 </body> |
| 40 </html> | 40 </html> |
| 41 | 41 |
| OLD | NEW |