Files
servo/tests/wpt/css-tests/css-transforms-1_dev/xhtml1/transform-descendant-001.xht

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 &gt; div {
background: green;
width: 100px;
height: 100px;
}
span {
background: yellow;
}
body &gt; div &gt; div {
transform: translate(20px, 150px);
}
</style>
</head>
<body>
<div>
<div><span>span 1</span></div>
</div>
<span>span 2</span>
</body></html>