mirror of
https://github.com/servo/servo
synced 2026-04-28 18:37:39 +02:00
42 lines
1.5 KiB
HTML
42 lines
1.5 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml"><head>
|
|
<title>CSS Test (Transforms): Compound Transforms</title>
|
|
<link href="mailto:keith@keithschwarz.com" rel="author" title="Keith Schwarz" />
|
|
<link href="mailto:robert@ocallahan.org" rel="author" title="Robert O'Callahan" />
|
|
<link href="mailto:ayg@aryeh.name" rel="author" title="Aryeh Gregor" />
|
|
<link href="http://www.w3.org/TR/css-transforms-1/#transform-rendering" rel="help" />
|
|
<meta content="Tests that applying multiple transforms to an
|
|
element is the same as applying the transforms in the same order to nested
|
|
elements." name="assert" />
|
|
<link href="reference/transform-compound-ref.xht" rel="match" />
|
|
<link href="reference/transform-compound-notref-1.xht" rel="mismatch" />
|
|
<link href="reference/transform-compound-notref-2.xht" rel="mismatch" />
|
|
<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> |