Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-transforms/transform-compound-001.html - WPT Dashboard Interop Dashboard
<!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">
<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.'>
<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;
border: 1px solid black;
transform: translate(100px) scale(2) rotate(90deg) skewX(15deg);
}
</style>
</head>
<body>
<div>
<div>
</div>
</div>
</body>
</html>