Status: FAIL | Duration: 11ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-transforms/ttwf-transform-translatex-001.html
<!DOCTYPE html> <html> <head> <title>CSS Transform Using translateX() function</title> <link rel="author" title="Mihai Corlan" href="mailto:mcorlan@adobe.com"> <link rel="help" href="http://www.w3.org/TR/css-transforms-1/#transform-property"> <link rel="match" href="reference/ttwf-reftest-transform-translatex-001.html"> <meta name="assert" content="Test that the green square is moved on X axis 100px"> <style type="text/css"> .greenSquare { position: absolute; top: 100px; left: 0px; width: 100px; height: 100px; transform: translateX(150px); background: green; } .redSquare { position: absolute; top: 100px; left: 150px; width: 98px; height: 98px; background: red; } </style> </head> <body> <p>The test passes if there is a green square and no red.</p> <div> <div class="redSquare"></div> <div class="greenSquare"></div> </div> </body> </html>
/css/css-transforms/reference/ttwf-reftest-transform-translatex-001.html
<!DOCTYPE html> <html> <head> <title>CSS Transforms Reference File</title> <link rel="author" title="Mihai Corlan" href="mailto:mcorlan@adobe.com"> <style type="text/css"> .greenSquare { position: absolute; top: 100px; left: 150px; width: 100px; height: 100px; background: green; } </style> </head> <body> <p>The test passes if there is a green square and no red.</p> <div class="greenSquare"></div> </body> </html>