mirror of
https://github.com/servo/servo
synced 2026-04-28 18:37:39 +02:00
32 lines
1.1 KiB
HTML
32 lines
1.1 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): Transform Affects Descendant</title>
|
|
<link href="mailto:ctalbert@mozilla.com" rel="author" title="Clint Talbert" />
|
|
<link href="mailto:ayg@aryeh.name" rel="author" title="Aryeh Gregor" />
|
|
<link href="http://www.apple.com" rel="reviewer" title="Apple Inc." />
|
|
<link href="http://www.w3.org/TR/css-transforms-1/#transform-rendering" rel="help" />
|
|
<meta content="This just tests that a transform on a
|
|
container div moves its contents, not just the div itself." name="assert" />
|
|
<link href="reference/transform-descendant-ref.xht" rel="match" />
|
|
<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> |