| <!DOCTYPE html> |
| <html> |
| <head> |
| <style type="text/css" media="screen"> |
| .container { |
| -webkit-perspective: 1000; |
| } |
| .frame { |
| -webkit-transform-style: preserve-3d; |
| transform: translateX(200px) rotateY(85deg); |
| } |
| .front { |
| position:absolute; |
| background-color: red; |
| } |
| |
| .back { |
| position:absolute; |
| background-color: green; |
| transform: rotateY(180deg); |
| } |
| div { |
| height: 200px; |
| width: 200px; |
| } |
| |
| .backfaceHidden { |
| backface-visibility: hidden; |
| } |
| </style> |
| </head> |
| <body> |
| <!-- In the pixel results, the green side should be visible. --> |
| <div class="container"> |
| <div class="frame"> |
| <div class="backfaceHidden front"></div> |
| <div class="backfaceHidden back"></div> |
| </div> |
| </div> |
| <script> |
| if (window.testRunner) { |
| testRunner.dumpAsTextWithPixelResults(); // This is only useful as a pixel test. |
| document.write("<span style='position:absolute; top:-5000px'>This test is only useful as a pixel test</span>"); |
| } |
| </script> |
| </body> |
| </html> |