Status: FAIL | Duration: 14ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-transforms/perspective-translateZ-0.html
<!DOCTYPE html> <html> <head> <title>CSS Transforms Test: perspective property</title> <link rel="author" title="Andres Ugarte" href="mailto:anduga@gmail.com"> <link rel="help" href="http://www.w3.org/TR/css-transforms-2/#perspective-property"> <link rel="help" href="http://www.w3.org/TR/css-transforms-1/#transform-property"> <link rel="match" href="reference/perspective-reftest.html"> <meta name="assert" content="Asserts that points on the z=0 plane are unchanged"> <style type="text/css"> .container { position: absolute; width: 150px; height: 150px; top: 100px; left: 100px; perspective: 3px; } .redSquare { position: absolute; top: 0px; left: 0px; width: 150px; height: 150px; background: red; transform: translateZ(0px); } .greenSquare { position: absolute; top: 25px; left: 25px; width: 100px; height: 100px; background: green; transform: translateZ(1px); } </style> </head> <body> <p>The test passes if there is a green square and no red.</p> <div class="container"> <div class="redSquare"></div> <div class="greenSquare"></div> </div> </body> </html>
/css/css-transforms/reference/perspective-reftest.html
<!DOCTYPE html> <html> <head> <title>Reference File</title> <link rel="author" title="Andres Ugarte" href="mailto:anduga@gmail.com"> <style type="text/css"> .container { position: absolute; width: 150px; height: 150px; top: 100px; left: 100px; } .greenSquare { position: absolute; top: 0px; left: 0px; width: 150px; height: 150px; background: green; } </style> </head> <body> <p>The test passes if there is a green square and no red.</p> <div class="container"> <div class="greenSquare"></div> </div> </body> </html>