| 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 #absolute { | 23 #absolute { |
| 24 /* This could be relative too, it just needs to be out of flow. */ | 24 /* This could be relative too, it just needs to be out of flow. */ |
| 25 position: absolute; | 25 position: absolute; |
| 26 } | 26 } |
| 27 | 27 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 <!-- The green rectangle should be visible. --> | 60 <!-- The green rectangle should be visible. --> |
| 61 <div id="container"> | 61 <div id="container"> |
| 62 <div id="perspective"> | 62 <div id="perspective"> |
| 63 <div id="transformed"></div> | 63 <div id="transformed"></div> |
| 64 <div id="absolute"></div> | 64 <div id="absolute"></div> |
| 65 </div> | 65 </div> |
| 66 </div> | 66 </div> |
| 67 </body> | 67 </body> |
| 68 </html> | 68 </html> |
| 69 | 69 |
| OLD | NEW |