Status: PASS | Duration: 20ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-transforms/transform-compound-001.html
<!DOCTYPE html> <html> <head> <title>CSS Test (Transforms): Compound Transforms</title> <link rel="author" title="Keith Schwarz" href="mailto:keith@keithschwarz.com"> <link rel="author" title="Robert O'Callahan" href="mailto:robert@ocallahan.org"> <link rel="author" title="Aryeh Gregor" href="mailto:ayg@aryeh.name"> <link rel="help" href="http://www.w3.org/TR/css-transforms-1/#transform-rendering"> <meta name="assert" content='Tests that applying multiple transforms to an element is the same as applying the transforms in the same order to nested elements.'> <meta name=fuzzy content="maxDifference=0-30;totalPixels=0-500"> <link rel="match" href="transform-compound-ref.html"> <link rel="mismatch" href="transform-compound-notref-1.html"> <link rel="mismatch" href="transform-compound-notref-2.html"> <style> body { overflow: hidden; } div { transform-origin: top left; } body > div { position: relative; left: 200px; top: 0; } body > div > div { background-color: gold; width: 200px; height: 100px; transform: translate(100px) scale(2) rotate(90deg) skewX(15deg); } </style> </head> <body> <div> <div> </div> </div> </body> </html>
/css/css-transforms/transform-compound-ref.html
<!DOCTYPE html> <html> <head> <title>CSS Reftest Reference</title> <link rel="author" title="Keith Schwarz" href="mailto:keith@keithschwarz.com"> <link rel="author" title="Robert O'Callahan" href="mailto:robert@ocallahan.org"> <link rel="author" title="Aryeh Gregor" href="mailto:ayg@aryeh.name"> <style> body { overflow: hidden; } div { transform-origin: top left; } body > div { position: relative; left: 200px; top: 0; } div.test { background-color: gold; width: 200px; height: 100px; } </style> </head> <body> <div> <div style="transform: translate(100px);"> <div style="transform: scale(2);"> <div style="transform: rotate(90deg);"> <div style="transform: skewX(15deg);"> <div class="test"> </div> </div> </div> </div> </div> </div> </body> </html>