Status: PASS | Duration: 7ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-transforms/transform-descendant-001.html
<!DOCTYPE html> <html> <head> <title>CSS Test (Transforms): Transform Affects Descendant</title> <link rel="author" title="Clint Talbert" href="mailto:ctalbert@mozilla.com"> <link rel="author" title="Aryeh Gregor" href="mailto:ayg@aryeh.name"> <link rel="reviewer" title="Apple Inc." href="http://www.apple.com"> <link rel="help" href="http://www.w3.org/TR/css-transforms-1/#transform-rendering"> <meta name="assert" content='This just tests that a transform on a container div moves its contents, not just the div itself.'> <link rel="match" href="transform-descendant-ref.html"> <style> body > div { background: green; width: 100px; height: 100px; } span { background: yellow; } body > div > div { transform: translate(20px, 150px); } </style> </head> <body> <div> <div><span>span 1</span></div> </div> <span>span 2</span> </body> </html>
/css/css-transforms/transform-descendant-ref.html
<!DOCTYPE html> <html> <head> <title>CSS Reftest Reference</title> <link rel="author" title="Clint Talbert" href="mailto:ctalbert@mozilla.com"> <link rel="author" title="Aryeh Gregor" href="mailto:ayg@aryeh.name"> <style> body > div { background: green; height: 100px; width: 100px; } span { background: yellow; } body > div > div { position: relative; top: 150px; left: 20px; } </style> </head> <body> <div> <div><span>span 1</span></div> </div> <span>span 2</span> </body> </html>